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

Reply via email to