hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13045) hadoop_add_classpath is not working in .hadooprc
Date Thu, 21 Apr 2016 14:22:25 GMT

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

Allen Wittenauer commented on HADOOP-13045:

Correct.  .hadooprc is the basic equivalent of the hadoop-env.sh file.  To quote the UnixShellGuide.md

 This file is always read to initialize and override any variables that the user may want
to customize.

There is no mention of the functions working inside of it.  None of the _HOME vars are guaranteed
to be set either as a result.

> hadoop_add_classpath is not working in .hadooprc
> ------------------------------------------------
>                 Key: HADOOP-13045
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13045
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Akira AJISAKA
> {{hadoop_basic_function}} resets {{CLASSPATH}} after {{.hadooprc}} is called.
> {noformat}
> $ hadoop --debug version
> (snip)
> DEBUG: Applying the user's .hadooprc
> DEBUG: Initial CLASSPATH=/root/hadoop-tools-0.1-SNAPSHOT.jar
> DEBUG: Rejected colonpath(JAVA_LIBRARY_PATH): /usr/local/hadoop/build/native
> DEBUG: Rejected colonpath(JAVA_LIBRARY_PATH): /usr/local/hadoop/lib/native
> DEBUG: Initial CLASSPATH=/usr/local/hadoop/share/hadoop/common/lib/*
> {noformat}

This message was sent by Atlassian JIRA

View raw message