Thanks for updating the jython wiki page Tux.
St.Ack

On Wed, Dec 2, 2009 at 9:36 AM, Tux Racer <[email protected]> wrote:

> Thanks a lot Gary.
> I did not have set the CLASSPATH shell variable as detailed in the wiki but
> set the JYTHONPATH variable as I thought it was the right way to do it in
> jython 2.5.1
> After adding the 'conf' directory to the JYTHONPATH, I still had the same
> issue.
> Then I tried setting the CLASSPATH variable as you suggested, with the full
> list I got from a 'ps auwx|grep java' (it does include the 'conf'
> directory), and.... it worked!
>
> Thanks again
> TR
>
>
>
> Gary Helmling wrote:
>
>> Sounds like this could be a classpath issue?  Does your classpath include
>> the hbase conf/ directory (so it can pick up hbase-default.xml)?
>>
>> What is it set to?
>>
>> On Wed, Dec 2, 2009 at 10:58 AM, Tux Racer <[email protected]> wrote:
>>
>>
>>
>>> Hello Hbase users,
>>>
>>> I tried to write a jython 2.5.1 hbase client on 0.20.2 but get a
>>> zookeeper
>>> exception (following the wiki http://wiki.apache.org/hadoop/Hbase/Jython
>>> )
>>>
>>>
>>>
>>>> conf=HBaseConfiguration()
>>>>>> admin=HBaseAdmin(conf)
>>>>>>
>>>>>>
>>>>> Traceback (most recent call last):
>>>  File "<stdin>", line 1, in <module>
>>>  at
>>>
>>> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getMaster(HConnectionManager.java:306)
>>>  at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:72)
>>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>  at
>>>
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>  at
>>>
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>  at
>>>
>>> org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:163)
>>>
>>> org.apache.hadoop.hbase.MasterNotRunningException:
>>> org.apache.hadoop.hbase.MasterNotRunningException: java.io.IOException:
>>> Could not read quorum servers from zoo.cfg
>>>
>>> Any idea where that comes from?
>>> This is the zookeeper config from the default distribution (one node on
>>> the
>>> local file system).
>>>
>>> Thanks in advance
>>> TR
>>>
>>>
>>>
>>>
>>
>>
>>
>
>

Reply via email to