When I am building Hadoop 0.23.1 on Mac, using Maven 3.0.3 and run this command.
> cd hadoop-mapreduce-project
> mvn clean install assembly:assembly -Pnative
received an error ” Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.1:assembly (default-cli) on project hadoop-mapreduce: Error reading assemblies: No assembly descriptors found. -> [Help 1]”
run the command
> mvn package -Pdist -DskipTests=true -Dtar
Then build succeeded.
I am setting up Hadoop 0.23.1 in a pseudo distributed mode on Fedora 17, when I tried to format the namenode using “bin/hadoop namenode -format” I came across the following error.
“net.DNS (DNS.java:resolveLocalHostname(184)) – Unable to determine local hostname -falling back to “localhost”
This can be solved by the changing the hostname to localhost
check the hostname by the command
change the hostname to localhost
to permanently change the hostname
1) debian based systems( example : ubuntu)
etc/hostname and enter localhost in it and run
2) RedHat based systems
/etc/sysconfig/network to enter the new hostname and new hostname is preserved even on reboot also.
the same problem is occured in the following link.