Date: Thu, 08 Jun 2017 20:23:38 +0000 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 Message-ID: <bug-219872-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219872-13>