From owner-freebsd-ports-bugs@freebsd.org Thu Jun 8 20:23:38 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 702A5C791C2 for ; Thu, 8 Jun 2017 20:23:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DB1B7055E for ; Thu, 8 Jun 2017 20:23:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v58KNcPE086532 for ; Thu, 8 Jun 2017 20:23:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 219872] devel/hadoop2 - kms.sh not working - files missing and permissions incorrect Date: Thu, 08 Jun 2017 20:23:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sean.smith@basecommerce.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: demon@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2017 20:23:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219872 Bug ID: 219872 Summary: devel/hadoop2 - kms.sh not working - files missing and permissions incorrect Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: demon@FreeBSD.org Reporter: sean.smith@basecommerce.com Assignee: demon@FreeBSD.org Flags: maintainer-feedback?(demon@FreeBSD.org) I am trying to setup HDFS encryption and need to use the included /usr/local/sbin/kms.sh script but it runs into several issues.=20=20 1. First when running it: # kms.sh /usr/local/sbin/kms.sh /usr/local/sbin/kms.sh: line 83: /usr/local/share/hadoop/kms/tomcat/bin/catalina.sh: Permission denied /usr/local/sbin/kms.sh: line 83: exec: /usr/local/share/hadoop/kms/tomcat/bin/catalina.sh: cannot execute: Permiss= ion denied I remedied this by running chmod +x /usr/local/share/hadoop/kms/tomcat/bin/catalina.sh=20 2. When I run kms.sh I'm met by another error=20 # kms.sh The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program I ran this to see what was happening in the script # sh -x /usr/local/sbin/kms.sh=20 and noticed that a script didn't exist=20 ... + exec /bin/catalina.sh exec: /bin/catalina.sh: not found I downloaded the catalina.sh script from a github repo - https://github.com/abridgett/pkg-hadoop/tree/master/share/hadoop/kms/tomcat= /bin=20 3. I ran it again # sh -x /usr/local/sbin/kms.sh=20 ... + exec /bin/catalina.sh=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Cannot find //bin/setclasspath.sh=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 This file is needed to run this program=20=20=20 I add this file from the github page also 4. Final run # kms.sh kms.sh=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 The BASEDIR environment variable is not defined correctly=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 This environment variable is needed to run this program=20 At this point I don't know what to do to get this to run and running # sh -x /usr/local/sbin/kms.sh gives no more useful clues # sh -x /usr/local/sbin/kms.sh ... + exec /bin/catalina.sh Using CATALINA_BASE: / Using CATALINA_HOME: / Using CATALINA_TMPDIR: //temp Using JRE_HOME: /usr/local Using CLASSPATH: //bin/bootstrap.jar Usage: catalina.sh ( commands ... ) commands: debug Start Catalina in a debugger debug -security Debug Catalina with a security manager jpda start Start Catalina under JPDA debugger run Start Catalina in the current window run -security Start in the current window with security manager start Start Catalina in a separate window start -security Start in a separate window with security manager stop Stop Catalina, waiting up to 5 seconds for the process = to end stop n Stop Catalina, waiting up to n seconds for the process = to end stop -force Stop Catalina, wait up to 5 seconds and then use kill -= KILL if still running stop n -force Stop Catalina, wait up to n seconds and then use kill -= KILL if still running version What version of tomcat are you running? Note: Waiting for the process to end and use of the -force option require t= hat $CATALINA_PID is defined --=20 You are receiving this mail because: You are the assignee for the bug.=