sudo -u hdfs hadoop fs -mkdir /tmp
sudo -u hdfs hadoop fs -chmod -R 1777 /tmp
sudo -u hdfs hadoop fs -mkdir -p /var/lib/hadoop-hdfs/cache/mapred/mapred/staging
sudo -u hdfs hadoop fs -chmod 1777 /var/lib/hadoop-hdfs/cache/mapred/mapred/staging
sudo -u hdfs hadoop fs -chown -R mapred /var/lib/hadoop-hdfs/cache/mapred
sudo -u hdfs hadoop fs -mkdir /user/hao
sudo -u hdfs hadoop fs -chown hao /user/haohao@rhadoop:~$ sudo -u hdfs hadoop fs -mkdir /tmp
mkdir: `/tmp': File exists<property>
Ā <name>hadoop.tmp.dir</name>
Ā <value>/var/lib/hadoop-hdfs/cache/${user.name}</value>
Ā </property>hao@rhadoop:~$ ls /var/lib/hadoop-hdfs/cache/
hdfs/ Ā mapred/ root/ Ā --
You received this message because you are subscribed to the Google Groups "Hadoop Users Group (HUG) Chennai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chennaihug+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Ā
Ā
--
You received this message because you are subscribed to a topic in the Google Groups "Hadoop Users Group (HUG) Chennai" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chennaihug/-g4llEgxMUc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chennaihug+...@googlegroups.com.
Thanks for pointing out thatĀ insideĀ ${hadoop.tmp.dir}/hdfs/Ā Hadoop stores the DFS Blocks. And here are what I'm concerning:1) My fs.default.name is pointing to myhost:myportĀ , not to local file system.2) I don't understand why I should doĀ $ hadoop dfs -mkdir $HOME/mynewfolder, what will this give to me?
2) CDH's core-default.xml is stored in a jar file instead of conf folder and it can not be modified, right? if I understand correctly, core-site.xml is supposed to replace some default settings in core-default.xml when you try to establish connection from outside to hdfs. In my case, I'm trying to copy file from local to remote pseudo-cluster's hdfs, and could not find where exactly I copied file to.
Say my java code is:Configuration conf = new Configuration();FileSystem fs = FileSystem.get(conf); ĀĀ fs.copyFromLocalFile("C:/test.cvs", "hdfs://172.16.1.39:8020/tmp/test.csv");Is there a folder named as "tmp" or the "tmp" folder isĀ Ā Ā ${hadoop.tmp.dir}? And am I able to find a file "test.csv" somewhere or only blocks of "test.cvs" in that folder?