Fail to read properties from zoo.cfg
java.io.IOException: zoo.cfg not found

I put zoo.cfg in my path /HaDoop/hbase/conf
and set my CLASSPATH to /HaDoop/hbase/conf in a linux PC without install
Hadoop and Hbase.

While I run following codes, it occurred error mesages about
"Fail to read properties from zoo.cfg,java.io.IOException: zoo.cfg not
found."

I read all mail about "zoo.cfg not found", but I still can't solve this
problem.
Anybody want to help me? Thank you very much.


        HBaseConfiguration config = new HBaseConfiguration();
        try {
                  HTable table1 = new HTable("FRPF");
                  System.out.println("Connect HBASE successfully");
            } catch (IOException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
            }
 --------------------------------------------------------------------------- 
                                                         TSMC PROPERTY       
 This email communication (and any attachments) is proprietary information   
 for the sole use of its                                                     
 intended recipient. Any unauthorized review, use or distribution by anyone  
 other than the intended                                                     
 recipient is strictly prohibited.  If you are not the intended recipient,   
 please notify the sender by                                                 
 replying to this email, and then delete this email and any copies of it     
 immediately. Thank you.                                                     
 --------------------------------------------------------------------------- 



Reply via email to