You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Mike Drob (JIRA)" <ji...@apache.org> on 2017/06/26 19:49:00 UTC
[jira] [Created] (HBASE-18269) Jython docs out of date
Mike Drob created HBASE-18269:
---------------------------------
Summary: Jython docs out of date
Key: HBASE-18269
URL: https://issues.apache.org/jira/browse/HBASE-18269
Project: HBase
Issue Type: Bug
Components: documentation
Reporter: Mike Drob
The documentation describing how to launch Jython + HBase is out of date.
First, we would set the classpath differently:
{noformat}
HBASE_CLASSPATH=/home/hbase/jython.jar bin/hbase org.python.util.jython
{noformat}
Then, the actual code example is out of date too:
{noformat}
>>> desc = HTableDescriptor(tablename)
>>> desc.addFamily(HColumnDescriptor("content:"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
at org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
at org.apache.hadoop.hbase.HColumnDescriptor.<init>(HColumnDescriptor.java:470)
at org.apache.hadoop.hbase.HColumnDescriptor.<init>(HColumnDescriptor.java:425)
at org.apache.hadoop.hbase.HColumnDescriptor.<init>(HColumnDescriptor.java:390)
at org.apache.hadoop.hbase.HColumnDescriptor.<init>(HColumnDescriptor.java:338)
at org.apache.hadoop.hbase.HColumnDescriptor.<init>(HColumnDescriptor.java:327)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211)
{noformat}
We should make sure that the examples we claim are runnable actually are.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)