[Bug 219872] devel/hadoop2 - kms.sh not working - files missing and permissions incorrect
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jun 8 20:23:38 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219872
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 at FreeBSD.org
Reporter: sean.smith at basecommerce.com
Assignee: demon at FreeBSD.org
Flags: maintainer-feedback?(demon at 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.
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: Permission
denied
I remedied this by running chmod +x
/usr/local/share/hadoop/kms/tomcat/bin/catalina.sh
2. When I run kms.sh I'm met by another error
# 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
and noticed that a script didn't exist
...
+ 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
3. I ran it again
# sh -x /usr/local/sbin/kms.sh
...
+ exec /bin/catalina.sh
Cannot find //bin/setclasspath.sh
This file is needed to run this program
I add this file from the github page also
4. Final run
# kms.sh
kms.sh
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
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 that
$CATALINA_PID is defined
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list