hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From y_823...@tsmc.com
Subject Re: Fail to read properties from zoo.cfg
Date Tue, 21 Jul 2009 10:02:36 GMT

Because I submit my code by GridGain, and run by GridGain.
GridGain has its own classpath, I've put zoo.cfg to GridGain configure
That's work.


                                               To:      hbase-user@hadoop.apache.org     
                      2009/07/21 03:09         cc:      (bcc: Y_823910/TSMC)             
                      PM                       Subject: Fail to read properties from zoo.cfg
                      Please respond to                                                  

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

I read all mail about "zoo.cfg not found", but I still can't solve this
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


                                                         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.                                                     

View raw message