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

Eric Charles commented on HADOOP-8055:
--------------------------------------

Hi Harsh,

I had to take some time to figure out how hadoop does its maven assemblies.
First to find the place where the tar.gz was located...:
- hadoop-project/target/ : No
- hadoop-project-dist/target/hadoop-project-dist-0.24.0-SNAPSHOT.tar.gz : No 
(the archive just contains a few classes of the hadoop-project-dist module)
- hadoop-assemblies/target/ : No
- hadoop-dist/target/hadoop-0.24.0-SNAPSHOT.tar.gz Yes! :)

After, I saw the assembly is done in hadoop-site/pom.xml via maven-antrun
 run cp -r 
$ROOT/hadoop-common-project/hadoop-common/target/hadoop-common-${project.version}/*
 .
 run cp -r 
$ROOT/hadoop-hdfs-project/hadoop-hdfs/target/hadoop-hdfs-${project.version}/* .
 run cp -r 
$ROOT/hadoop-hdfs-project/hadoop-hdfs-httpfs/target/hadoop-hdfs-httpfs-${project.version}/*
 .
 run cp -r 
$ROOT/hadoop-mapreduce-project/target/hadoop-mapreduce-${project.version}/* .
 run cp -r 
$ROOT/hadoop-tools/hadoop-tools-dist/target/hadoop-tools-dist-${project.version}/*
 .

and yes, 
$ROOT/hadoop-hdfs-project/hadoop-hdfs/target/hadoop-hdfs-${project.version}/ 
contains the hdfs-site.xml file, but not the core-site.xml

This 
$ROOT/hadoop-hdfs-project/hadoop-hdfs/target/hadoop-hdfs-${project.version}/ 
folder is being generated by the hadoop-hdfs-project/hadoop-hdfs/ build, so I 
added the core-site.xml next to the hdfs-site.xml. After a clean/rebuild, the 
hadoop-dist/target/hadoop-0.24.0-SNAPSHOT.tar.gz had the needed core-site.xml 
inside.

I will further review the 0.24.0-SNAPSHOT hadoop-assemblies module based on 
your inputs, but a quick look to it leaves me in the shadow... Hope you 
followed me until here, otherwise welcome to the shadow :)


                
> Distribution tar.gz does not contain etc/hadoop/core-site.xml
> -------------------------------------------------------------
>
>                 Key: HADOOP-8055
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8055
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.24.0
>            Reporter: Eric Charles
>         Attachments: HADOOP-8055.patch
>
>
> A dist built from trunk (0.24.0-SNAPSHOT) does not contain a core-site.xml in 
> $HADOOP_HOME/etc/hadoop/ folder.
> $HADOOP_HOME/sbin/start-dfs.sh without that folder gives an exception
> Exception in thread "main" java.lang.IllegalArgumentException: URI has an 
> authority component
>  at java.io.File.<init>(File.java:368)
>  at 
> org.apache.hadoop.hdfs.server.namenode.NNStorage.getStorageDirectory(NNStorage.java:310)
>  at org.apache.hadoop.hdfs.server.namenode.FSEditLog.init(FSEditLog.java:178)
> ...
> Manually creating $HADOOP_HOME/etc/hadoop/core-site.xml solves this problem 
> and hadoop starts fine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to