Dear Peter, When I just started the Ubuntu machine, there was nothing in /tmp.
After starting $HADOOP/bin/start-dfs.sh and $HBase/bin/start-hbase.sh, the following files were under /tmp. Do you think anything wrong? Thanks! libing@greatfreeweb:/tmp$ ls -alrt total 112 drwxr-xr-x 22 root root 4096 2012-03-28 14:17 .. -rw-r--r-- 1 libing libing 5 2012-03-29 04:48 hadoop-libing-namenode.pid -rw-r--r-- 1 libing libing 5 2012-03-29 04:48 hadoop-libing-datanode.pid -rw-r--r-- 1 libing libing 5 2012-03-29 04:48 hadoop-libing-secondarynamenode.pid -rw-r--r-- 1 libing libing 5 2012-03-29 04:48 hbase-libing-zookeeper.pid drwxr-xr-x 3 libing libing 4096 2012-03-29 04:48 hbase-libing -rw-r--r-- 1 libing libing 5 2012-03-29 04:48 hbase-libing-master.pid -rw-r--r-- 1 libing libing 5 2012-03-29 04:48 hbase-libing-regionserver.pid drwxr-xr-x 2 libing libing 4096 2012-03-29 04:48 hsperfdata_libing drwxrwxrwt 4 root root 4096 2012-03-29 04:48 . -rw-r--r-- 1 libing libing 71819 2012-03-29 04:48 jffi5395899026867792565.tmp libing@greatfreeweb:/tmp$ Best, Bing On Thu, Mar 29, 2012 at 3:19 AM, Peter Vandenabeele <[email protected]>wrote: > On Wed, Mar 28, 2012 at 7:27 PM, Bing Li <[email protected]> wrote: > > Dear all, > > > > I found some configuration information was saved in /tmp in my system. So > > when some of the information is lost, the HBase cannot be started > normally. > > > > But in my system, I have tried to change the HDFS directory to another > > location. Why are there still some files under /tmp? > > I have a pseudo-distributed set-up (Cloudera cdh3u2) with local > directory (not /tmp) > and as a test: > > * stopped the hbase service > * stopped the hadoop services > * moved all hadoop related files from tmp to an ORIG directory [see below] > * restarted all (5) hadoop services > * restarted the hbase service > > All of that worked stable, so I presume no immediate dependency on the > /tmp files. The files that are recreated are these: > > peterv@e6500:/tmp$ ls -alrt > ... > drwxr-xr-x 4 hdfs hdfs 4096 2012-03-28 20:07 > Jetty_0_0_0_0_50070_hdfs____w2cu08 > drwxr-xr-x 4 hdfs hdfs 4096 2012-03-28 20:07 > Jetty_0_0_0_0_50075_datanode____hwtdwq > drwxr-xr-x 2 hdfs hdfs 4096 2012-03-28 20:07 hsperfdata_hdfs > drwxr-xr-x 4 hdfs hdfs 4096 2012-03-28 20:07 > Jetty_0_0_0_0_50090_secondary____y6aanv > drwxr-xr-x 4 mapred mapred 4096 2012-03-28 20:07 > Jetty_0_0_0_0_50030_job____yn7qmk > drwxr-xr-x 2 mapred mapred 4096 2012-03-28 20:07 hsperfdata_mapred > drwxr-xr-x 2 root root 4096 2012-03-28 20:07 hsperfdata_root > drwxr-xr-x 4 mapred mapred 4096 2012-03-28 20:07 > Jetty_0_0_0_0_50060_task____.2vcltf > > The files that I had moved on the site (to ORIG) where: > > peterv@e6500:/tmp$ ls -alrt ORIG/ > total 44 > drwxr-xr-x 4 mapred mapred 4096 2012-03-28 19:58 > Jetty_0_0_0_0_50030_job____yn7qmk > drwxr-xr-x 4 hdfs hdfs 4096 2012-03-28 19:58 > Jetty_0_0_0_0_50070_hdfs____w2cu08 > drwxr-xr-x 4 hdfs hdfs 4096 2012-03-28 19:58 > Jetty_0_0_0_0_50090_secondary____y6aanv > drwxr-xr-x 4 hdfs hdfs 4096 2012-03-28 19:58 > Jetty_0_0_0_0_50075_datanode____hwtdwq > drwxr-xr-x 4 mapred mapred 4096 2012-03-28 19:59 > Jetty_0_0_0_0_50060_task____.2vcltf > drwxr-xr-x 2 peterv peterv 4096 2012-03-28 20:05 hsperfdata_peterv > drwxr-xr-x 2 hdfs hdfs 4096 2012-03-28 20:05 hsperfdata_hdfs > drwxr-xr-x 2 mapred mapred 4096 2012-03-28 20:05 hsperfdata_mapred > drwxr-xr-x 2 root root 4096 2012-03-28 20:06 hsperfdata_root > > Which hadoop/hbase files do you still see in your /tmp directory? > > HTH, > > Peter >
