You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eric Yang (JIRA)" <ji...@apache.org> on 2019/03/13 16:53:00 UTC

[jira] [Comment Edited] (HADOOP-16167) "hadoop CLASSFILE" prints error messages on Ubuntu 18

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

Eric Yang edited comment on HADOOP-16167 at 3/13/19 4:52 PM:
-------------------------------------------------------------

Hadoop_subcommand unit test is failing in Jenkins using ubuntu:xenial .  I am unable to reproduce this failure locally in ubuntu:cosmic or ubuntu:xenial.  Same unit test has been failing consistently in this issue.  I have no idea on why unit test for hadoop_subcommand is failing in Jenkins, [~aw]?


was (Author: eyang):
Hadoop_subcommand unit test is failing in Jenkins using ubuntu:xenial .  I am unable to reproduce that failure locally in ubuntu:cosmic.  Same unit test has been failing consistently in this issue.  I can't find the reference from the patch logic to introduce changes to hadoop_subcommand, nor hadoop_subcommand is used in any other place other than the unit test.  If the command is not used, can the unit tests be removed, [~aw]?

> "hadoop CLASSFILE" prints error messages on Ubuntu 18
> -----------------------------------------------------
>
>                 Key: HADOOP-16167
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16167
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 3.2.0
>            Reporter: Daniel Templeton
>            Assignee: Daniel Templeton
>            Priority: Major
>         Attachments: HADOOP-16167.001.patch, HADOOP-16167.002.patch, HADOOP-16167.003.patch
>
>
> {noformat}
> # hadoop org.apache.hadoop.conf.Configuration
> /usr/lib/hadoop/bin/../lib/hadoop/libexec//hadoop-functions.sh: line 2366: HADOOP_ORG.APACHE.HADOOP.CONF.CONFIGURATION_USER: bad substitution
> /usr/lib/hadoop/bin/../lib/hadoop/libexec//hadoop-functions.sh: line 2331: HADOOP_ORG.APACHE.HADOOP.CONF.CONFIGURATION_USER: bad substitution
> /usr/lib/hadoop/bin/../lib/hadoop/libexec//hadoop-functions.sh: line 2426: HADOOP_ORG.APACHE.HADOOP.CONF.CONFIGURATION_OPTS: bad substitution
> {noformat}
> The issue is a regression in bash 4.4.  See [here|http://savannah.gnu.org/support/?109649].  The extraneous output can break scripts that read the command output.
> According to [~aw]:
> {quote}Oh, I think I see the bug.  HADOOP_SUBCMD (and equivalents in yarn, hdfs, etc) just needs some special handling when a custom method is being called.  For example, there’s no point in checking to see if it should run with privileges, so just skip over that.  Probably a few other places too.  Relatively easy fix.  2 lines of code, maybe.{quote}



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

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