Hi,
Because I submit my code by GridGain, and run by GridGain.
GridGain has its own classpath, I've put zoo.cfg to GridGain configure
path.
That's work.
Fleming
[email protected]
To:
[email protected]
2009/07/21 03:09 cc: (bcc: Y_823910/TSMC)
PM Subject: Fail to read properties
from zoo.cfg
Please respond to
hbase-user
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.
---------------------------------------------------------------------------