[ 
https://issues.apache.org/jira/browse/FLINK-7396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121543#comment-16121543
 ] 

ASF GitHub Bot commented on FLINK-7396:
---------------------------------------

Github user aljoscha commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4511#discussion_r132439899
  
    --- Diff: flink-dist/src/main/flink-bin/bin/config.sh ---
    @@ -336,16 +336,18 @@ if [ -z "${JVM_ARGS}" ]; then
         JVM_ARGS=""
     fi
     
    -# Check if deprecated HADOOP_HOME is set.
    -if [ -n "$HADOOP_HOME" ]; then
    -    # HADOOP_HOME is set. Check if its a Hadoop 1.x or 2.x HADOOP_HOME path
    -    if [ -d "$HADOOP_HOME/conf" ]; then
    -        # its a Hadoop 1.x
    -        HADOOP_CONF_DIR="$HADOOP_CONF_DIR:$HADOOP_HOME/conf"
    -    fi
    -    if [ -d "$HADOOP_HOME/etc/hadoop" ]; then
    -        # Its Hadoop 2.2+
    -        HADOOP_CONF_DIR="$HADOOP_CONF_DIR:$HADOOP_HOME/etc/hadoop"
    +# Check if deprecated HADOOP_HOME is set, and specify config path to 
HADOOP_CONF_DIR if it's empty.
    +if [ -z "$HADOOP_CONF_DIR" ]; then
    +    if [ -n "$HADOOP_HOME" ]; then
    +        # HADOOP_HOME is set. Check if its a Hadoop 1.x or 2.x HADOOP_HOME 
path
    +        if [ -d "$HADOOP_HOME/conf" ]; then
    +            # its a Hadoop 1.x
    +            HADOOP_CONF_DIR="$HADOOP_CONF_DIR:$HADOOP_HOME/conf"
    --- End diff --
    
    This is still putting multiple colon-separated directories in 
`HADOOP_CONF_DIR`. Simply removing `$HADOOP_CONF_DIR:` here should work. Same 
below.


> Don't put multiple directories in HADOOP_CONF_DIR in config.sh
> --------------------------------------------------------------
>
>                 Key: FLINK-7396
>                 URL: https://issues.apache.org/jira/browse/FLINK-7396
>             Project: Flink
>          Issue Type: Bug
>          Components: Startup Shell Scripts
>    Affects Versions: 1.4.0, 1.3.2
>            Reporter: Aljoscha Krettek
>            Assignee: Fang Yong
>            Priority: Blocker
>             Fix For: 1.4.0, 1.3.3
>
>
> In config.sh we do this:
> {code}
> # Check if deprecated HADOOP_HOME is set.
> if [ -n "$HADOOP_HOME" ]; then
>     # HADOOP_HOME is set. Check if its a Hadoop 1.x or 2.x HADOOP_HOME path
>     if [ -d "$HADOOP_HOME/conf" ]; then
>         # its a Hadoop 1.x
>         HADOOP_CONF_DIR="$HADOOP_CONF_DIR:$HADOOP_HOME/conf"
>     fi
>     if [ -d "$HADOOP_HOME/etc/hadoop" ]; then
>         # Its Hadoop 2.2+
>         HADOOP_CONF_DIR="$HADOOP_CONF_DIR:$HADOOP_HOME/etc/hadoop"
>     fi
> fi
> {code}
> while our {{HadoopFileSystem}} actually only treats this paths as a single 
> path, not a colon-separated path: 
> https://github.com/apache/flink/blob/854b05376a459a6197e41e141bb28a9befe481ad/flink-runtime/src/main/java/org/apache/flink/runtime/fs/hdfs/HadoopFileSystem.java#L236
> I also think that other tools don't assume multiple paths in there and at 
> least one user ran into the problem on their setup.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to