[ https://issues.apache.org/jira/browse/HDFS-12571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17125635#comment-17125635 ]
Jialin Liu commented on HDFS-12571: ----------------------------------- as of June 14 2020, I'm still seeing the same issue: {code:java} sudo bash start-all.sh Password: Starting namenodes on [localhost] /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: ` done < <(for text in "${input[@]}"; do' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 249: hadoop_need_reexec: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 257: hadoop_verify_user_perm: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 218: hadoop_validate_classname: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 219: hadoop_exit_with_usage: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 268: hadoop_add_client_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 275: hadoop_subcommand_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 278: hadoop_generic_java_subcmd_handler: command not found Starting datanodes /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: ` done < <(for text in "${input[@]}"; do' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 249: hadoop_need_reexec: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 257: hadoop_verify_user_perm: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 218: hadoop_validate_classname: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 219: hadoop_exit_with_usage: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 268: hadoop_add_client_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 275: hadoop_subcommand_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 278: hadoop_generic_java_subcmd_handler: command not found Starting secondary namenodes [Jialin.local] /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: ` done < <(for text in "${input[@]}"; do' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 249: hadoop_need_reexec: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 257: hadoop_verify_user_perm: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 218: hadoop_validate_classname: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 219: hadoop_exit_with_usage: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 268: hadoop_add_client_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 275: hadoop_subcommand_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 278: hadoop_generic_java_subcmd_handler: command not found 2020-06-04 00:35:02,865 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Starting resourcemanager /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: ` done < <(for text in "${input[@]}"; do' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 270: hadoop_need_reexec: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 278: hadoop_verify_user_perm: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/yarn: line 237: hadoop_validate_classname: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/yarn: line 238: hadoop_exit_with_usage: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 298: hadoop_add_client_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 305: hadoop_subcommand_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 308: hadoop_generic_java_subcmd_handler: command not found Starting nodemanagers /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: ` done < <(for text in "${input[@]}"; do' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 270: hadoop_need_reexec: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 278: hadoop_verify_user_perm: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/yarn: line 237: hadoop_validate_classname: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/yarn: line 238: hadoop_exit_with_usage: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 298: hadoop_add_client_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 305: hadoop_subcommand_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 308: hadoop_generic_java_subcmd_handler: command not found Jialin:sbin jialin$ sudo ./start-all.sh Starting namenodes on [localhost] /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: ` done < <(for text in "${input[@]}"; do' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 249: hadoop_need_reexec: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 257: hadoop_verify_user_perm: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 218: hadoop_validate_classname: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 219: hadoop_exit_with_usage: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 268: hadoop_add_client_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 275: hadoop_subcommand_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 278: hadoop_generic_java_subcmd_handler: command not found Starting datanodes /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: ` done < <(for text in "${input[@]}"; do' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 249: hadoop_need_reexec: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 257: hadoop_verify_user_perm: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 218: hadoop_validate_classname: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 219: hadoop_exit_with_usage: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 268: hadoop_add_client_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 275: hadoop_subcommand_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 278: hadoop_generic_java_subcmd_handler: command not found Starting secondary namenodes [Jialin.local] /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: ` done < <(for text in "${input[@]}"; do' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 249: hadoop_need_reexec: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 257: hadoop_verify_user_perm: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 218: hadoop_validate_classname: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/hdfs: line 219: hadoop_exit_with_usage: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 268: hadoop_add_client_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 275: hadoop_subcommand_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 278: hadoop_generic_java_subcmd_handler: command not found 2020-06-04 00:35:21,803 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Starting resourcemanager /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: ` done < <(for text in "${input[@]}"; do' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 270: hadoop_need_reexec: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 278: hadoop_verify_user_perm: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/yarn: line 237: hadoop_validate_classname: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/yarn: line 238: hadoop_exit_with_usage: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 298: hadoop_add_client_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 305: hadoop_subcommand_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 308: hadoop_generic_java_subcmd_handler: command not found Starting nodemanagers /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-functions.sh: line 398: ` done < <(for text in "${input[@]}"; do' /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 270: hadoop_need_reexec: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 278: hadoop_verify_user_perm: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/yarn: line 237: hadoop_validate_classname: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/yarn: line 238: hadoop_exit_with_usage: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 298: hadoop_add_client_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 305: hadoop_subcommand_opts: command not found /usr/local/Cellar/hadoop/3.2.1_1/libexec/bin/../libexec/hadoop-config.sh: line 308: hadoop_generic_java_subcmd_handler: 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: Marton Elek > Assignee: Marton Elek > 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 (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org