80346/typing-command-getting-could-caused-classnotfoundexception
Hi,
I think fs command comes under Hadoop, not HDFS. So instead of using hdfs fs command, you can use hadoop fs. You need to change your command as shown below.
You can either run
$ hdfs dfs -mkdir or $ hadoop fs -mkdir
@Premkumar,
What happens if you execute: hadoop version ?
There may be two possibilities:
It's safe to ignore this warning.
Make sure you have these two lines in your .bashrc file:
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib
Hi, @premkumar,
ideally, you should be using hdfs dfs instead, You can use this
Usage:
hdfs dfs -mkdir [hdfs location]
Hey, @premkumar,
Could you mention the steps you followed to install Hadoop?
Hi@Premkumar,
Can you please paste your core-site.xml file entry?
First, change your core-site.xml property as shown below.
<configuration> <property> <name>fs.defaultFS</name> <value>hdfs://localhost:9000</value> </property> </configuration>
And regarding your warning part, It will not affect your Hadoop configuration. But you can remove this part also. You need to add the HADOOP_OPTS value in the .bashrc file.
export HADOOP_OPTS="$HADOOP_OPTS -Djava.library.path=$HADOOP_HOME/lib/native"
Hey! The error seems like the problem is ...READ MORE
Hi, @Kamaraj, It looks like a path issue, ...READ MORE
You have to add HADOOP_CLASSPATH environment parameter: expor ...READ MORE
This seems like a path issue. Add the ...READ MORE
Firstly you need to understand the concept ...READ MORE
org.apache.hadoop.mapred is the Old API org.apache.hadoop.mapreduce is the ...READ MORE
Hi, You can create one directory in HDFS ...READ MORE
In your case there is no difference ...READ MORE
Hi@fwood, According to your configuration, you didn't set ...READ MORE
Hi@bezz, Hadoop builds on top of Java. So ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.