hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Mahé (JIRA) <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7596) Enable jsvc to work with Hadoop RPM package
Date Thu, 01 Sep 2011 02:39:09 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-7596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095085#comment-13095085

Bruno Mahé commented on HADOOP-7596:

I am confused.

-      JAVA_HOME=`update-alternatives --config java | grep java | cut -f2 -d':' | cut -f2
-d' ' | sed -e 's/\/bin\/java//'`
+      JAVA_HOME=/usr/lib/jvm/java-6-sun

/usr/lib/jvm/java-6-sun is not valid on my machine (I have the JDK package installed). So
why this path?

And also I see 
+if [ -n "$HADOOP_SECURE_DN_USER" ]; then
+  DN_USER=""
+  DN_USER="-c hdfs"

but then it is used later on in paths. Here is one example:
-	if start-stop-daemon --start --quiet --oknodo --pidfile ${HADOOP_PID_DIR}/hadoop-hdfs-datanode.pid
-c hdfs -x ${HADOOP_PREFIX}/sbin/hadoop-daemon.sh -- --config ${HADOOP_CONF_DIR} start datanode;
+	if start-stop-daemon --start --quiet --oknodo --pidfile ${HADOOP_PID_DIR}/hadoop-${DN_USER}-datanode.pid
-c ${DN_USER} -x ${HADOOP_PREFIX}/sbin/hadoop-daemon.sh -- --config ${HADOOP_CONF_DIR} start
datanode; then

--pidfile ${HADOOP_PID_DIR}/hadoop-${DN_USER}-datanode.pid 
would be expanded to
--pidfile ${HADOOP_PID_DIR}/hadoop-c hdfs-datanode.pid 

> Enable jsvc to work with Hadoop RPM package
> -------------------------------------------
>                 Key: HADOOP-7596
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7596
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions:
>         Environment: Java 6, RedHat EL 5.6
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>             Fix For:
>         Attachments: HADOOP-7596.patch
> For secure Hadoop 0.20.2xx cluster, datanode can only run with 32 bit jvm because Hadoop
only packages 32 bit jsvc.  The build process should download proper jsvc versions base on
the build architecture.  In addition, the shell script should be enhanced to locate hadoop
jar files in the proper location.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message