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 "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/10/07 16:14:00 UTC

[jira] [Work logged] (HADOOP-17298) Backslash in username causes build failure in the environment started by start-build-env.sh.

     [ https://issues.apache.org/jira/browse/HADOOP-17298?focusedWorklogId=496717&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-496717 ]

ASF GitHub Bot logged work on HADOOP-17298:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Oct/20 16:13
            Start Date: 07/Oct/20 16:13
    Worklog Time Spent: 10m 
      Work Description: tkuramoto33 opened a new pull request #2367:
URL: https://github.com/apache/hadoop/pull/2367


   If a username includes a backslash, `mvn clean install` fails in an environment started by start-build-env.sh.
   
   The causes of this problem are as follows:
   1. start-build-env.sh sets the home directory in the Docker container to /home/${USER_NAME}. 
   2. Maven does not support path names such as "/home/CORP\name/". This type of path names appear in Amazon WorkSpaces. 
   
   Therefore, I have made it possible for users to change their home directory in the Docker container.
   
   I have tested this patch in Amazon WorkSpaces.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 496717)
    Remaining Estimate: 0h
            Time Spent: 10m

> Backslash in username causes build failure in the environment started by start-build-env.sh.
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-17298
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17298
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>            Reporter: Takeru Kuramoto
>            Assignee: Takeru Kuramoto
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> If a username includes a backslash, `mvn clean install` fails in an environment started by start-build-env.sh.
> Here is my result in Amazon WorkSpaces.
>  
> {code:java}
> CORPbtkuramototkr@b8e750b1e386:/home/CORP\btkuramototkr/hadoop/hadoop-build-to
> ols$ mvn clean install
> /usr/bin/mvn: 1: cd: can't cd to /home/CORtkuramototkr/hadoop/hadoop-build-tools/..
> [INFO] Scanning for projects...
> [INFO] 
> [INFO] ----------------< org.apache.hadoop:hadoop-build-tools >----------------
> [INFO] Building Apache Hadoop Build Tools 3.4.0-SNAPSHOT
> [INFO] --------------------------------[ jar ]---------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ hadoop-build-tools ---
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy-resources) @ hadoop-build-tools ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.074 s
> [INFO] Finished at: 2020-10-05T02:51:53Z
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.1:copy-resources (copy-resources) on project hadoop-build-tools: Cannot create resource output directory: /home/CORP/btkuramototkr/hadoop/hadoop-build-tools/target/extra-resources -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> {code}
>  
> This problem can be solved by adding an option to change the path to maven's local repository in the container so that users can remove backslashes from their username.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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