hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12571) Ozone: remove spaces from the beginning of the hdfs script
Date Sun, 11 Feb 2018 01:22:02 GMT

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

Apache Spark commented on HDFS-12571:
-------------------------------------

I still meet this issue in hadoop-3.0.0 with centos7

 
{code:java}
/software/hadoop-3.0.0/libexec/hadoop-functions.sh: line 398: syntax error near unexpected
token `<'
/software/hadoop-3.0.0/libexec/hadoop-functions.sh: line 398: `  done < <(for text
in "${input[@]}"; do'
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not
found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 105: shift: : numeric argument required
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 110: hadoop_find_confdir: command not
found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 111: hadoop_exec_hadoopenv: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 112: hadoop_import_shellprofiles: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 113: hadoop_exec_userfuncs: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 119: hadoop_exec_user_hadoopenv: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 120: hadoop_verify_confdir: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 122: hadoop_deprecate_envvar: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 123: hadoop_deprecate_envvar: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 124: hadoop_deprecate_envvar: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 129: hadoop_os_tricks: command not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 131: hadoop_java_setup: command not
found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 133: hadoop_basic_init: command not
found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 140: hadoop_shellprofiles_init: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 143: hadoop_add_javalibpath: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 144: hadoop_add_javalibpath: command
not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 146: hadoop_shellprofiles_nativelib:
command not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 152: hadoop_add_common_to_classpath:
command not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 153: hadoop_shellprofiles_classpath:
command not found
/software/hadoop-3.0.0/libexec/hadoop-config.sh: line 157: hadoop_exec_hadooprc: command not
found
{code}
 

> Ozone: remove spaces from the beginning of the hdfs script  
> ------------------------------------------------------------
>
>                 Key: HDFS-12571
>                 URL: https://issues.apache.org/jira/browse/HDFS-12571
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>    Affects Versions: HDFS-7240
>            Reporter: Elek, Marton
>            Assignee: Elek, Marton
>            Priority: Critical
>              Labels: ozoneMerge
>             Fix For: HDFS-7240
>
>         Attachments: HDFS-12571-HDFS-7240.001.patch
>
>
> It seems that during one of the previous merge some unnecessary spaces has been added
to the hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs file.
> After a dist build I can not start server with the hdfs command:
> {code}
> /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-functions.sh: line 398: syntax error
near unexpected token `<'
> /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-functions.sh: line 398: `  done <
<(for text in "${input[@]}"; do'
> /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar:
command not found
> /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap:
command not found
> /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args:
command not found
> /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric
argument required
> /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 110: hadoop_find_confdir:
command not found
> /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 111: hadoop_exec_hadoopenv:
command not found
> /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 112: hadoop_import_shellprofiles:
command not found
> {code}
> See the space at here:
> https://github.com/apache/hadoop/blob/d0bd0f623338dbb558d0dee5e747001d825d92c5/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs
> Or see the latest version at:
> https://github.com/apache/hadoop/blob/HDFS-7240/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs
> To be honest I don't understand how it could work for others, as it seems to be an older
change. Maybe some git magic removed it on OSX (I use linux). Anyway I upload a patch to fix
it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message