hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-477) Add support for an HBASE_CLASSPATH
Date Sun, 02 Mar 2008 05:02:50 GMT

    [ https://issues.apache.org/jira/browse/HBASE-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574187#action_12574187
] 

stack commented on HBASE-477:
-----------------------------

With this patch, I can do following:

{code}
durruti:~/Documents/checkouts/hbase/trunk stack$ HBASE_OPTIONS="-Dpython.home='/Users/stack/bin/jython2.2.1'"
HBASE_CLASSPATH=/Users/stack/bin/jython2.2.1/jython.jar ./bin/hbase org.python.util.jython
Jython 2.2.1 on java1.5.0_13
Type "copyright", "credits" or "license" for more information.
>>> from org.apache.hadoop.hbase import HBaseConfiguration 
>>> h = HBaseConfiguration()
>>> from org.apache.hadoop.hbase.client import HTable
>>> from org.apache.hadoop.io import Text
>>> n = Text('some_table')
>>> t = Table(h, n)
Traceback (innermost last):
  File "<console>", line 1, in ?
NameError: Table
>>> t = HTable(h, n)
08/03/01 20:59:53 INFO [main] ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000.
Already tried 1 time(s).
08/03/01 20:59:54 INFO [main] ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000.
Already tried 2 time(s).
{code}

i.e. jython context with all of hbase dependencies on the CLASSPATH

> Add support for an HBASE_CLASSPATH
> ----------------------------------
>
>                 Key: HBASE-477
>                 URL: https://issues.apache.org/jira/browse/HBASE-477
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Priority: Minor
>         Attachments: cp.patch
>
>
> We have mention of HBASE_CLASSPATH in hbase-env.sh but its not actually read anywhere.
 Make it work like HADOOP_CLASSPATH.  See classpath discussion on this page, http://wiki.apache.org/hadoop/Hbase/Jython,
for a use case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message