[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-06-20 Thread Hudson (JIRA)


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

Hudson commented on HBASE-18269:


Results for branch master
[build #371 on 
builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/master/371/]: (x) 
*{color:red}-1 overall{color}*

details (if available):

(/) {color:green}+1 general checks{color}
-- For more information [see general 
report|https://builds.apache.org/job/HBase%20Nightly/job/master/371//General_Nightly_Build_Report/]




(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2) 
report|https://builds.apache.org/job/HBase%20Nightly/job/master/371//JDK8_Nightly_Build_Report_(Hadoop2)/]


(x) {color:red}-1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3) 
report|https://builds.apache.org/job/HBase%20Nightly/job/master/371//JDK8_Nightly_Build_Report_(Hadoop3)/]


(/) {color:green}+1 source release artifact{color}
-- See build output for details.


(/) {color:green}+1 client integration test{color}


> Jython docs out of date
> ---
>
> Key: HBASE-18269
> URL: https://issues.apache.org/jira/browse/HBASE-18269
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Affects Versions: 1.3.1, 1.2.6, 1.5.0, 1.4.2, 2.0.0
>Reporter: Mike Drob
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
> Fix For: 3.0.0
>
> Attachments: HBASE-18269.v01.patch, HBASE-18269.v02.patch, 
> HBASE-18269.v02.patch
>
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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
(v7.6.3#76005)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-06-20 Thread Hadoop QA (JIRA)


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

Hadoop QA commented on HBASE-18269:
---

| (/) *{color:green}+1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m 
14s{color} | {color:blue} Docker mode activated. {color} |
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  4m 
41s{color} | {color:green} master passed {color} |
| {color:blue}0{color} | {color:blue} refguide {color} | {color:blue}  5m  
7s{color} | {color:blue} branch has no errors when building the reference 
guide. See footer for rendered docs, which you should manually inspect. {color} 
|
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:blue}0{color} | {color:blue} refguide {color} | {color:blue}  4m 
50s{color} | {color:blue} patch has no errors when building the reference 
guide. See footer for rendered docs, which you should manually inspect. {color} 
|
|| || || || {color:brown} Other Tests {color} ||
| {color:green}+1{color} | {color:green} asflicense {color} | {color:green}  0m 
10s{color} | {color:green} The patch does not generate ASF License warnings. 
{color} |
| {color:black}{color} | {color:black} {color} | {color:black} 15m 17s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hbase:b002b0b |
| JIRA Issue | HBASE-18269 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12928494/HBASE-18269.v02.patch 
|
| Optional Tests |  asflicense  refguide  |
| uname | Linux b5d157fdc512 3.13.0-139-generic #188-Ubuntu SMP Tue Jan 9 
14:43:09 UTC 2018 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | 
/home/jenkins/jenkins-slave/workspace/PreCommit-HBASE-Build/component/dev-support/hbase-personality.sh
 |
| git revision | master / d3e237d141 |
| maven | version: Apache Maven 3.5.3 
(3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T19:49:05Z) |
| refguide | 
https://builds.apache.org/job/PreCommit-HBASE-Build/13320/artifact/patchprocess/branch-site/book.html
 |
| refguide | 
https://builds.apache.org/job/PreCommit-HBASE-Build/13320/artifact/patchprocess/patch-site/book.html
 |
| Max. process+thread count | 87 (vs. ulimit of 1) |
| modules | C: . U: . |
| Console output | 
https://builds.apache.org/job/PreCommit-HBASE-Build/13320/console |
| Powered by | Apache Yetus 0.7.0   http://yetus.apache.org |


This message was automatically generated.



> Jython docs out of date
> ---
>
> Key: HBASE-18269
> URL: https://issues.apache.org/jira/browse/HBASE-18269
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Affects Versions: 1.3.1, 1.2.6, 1.5.0, 1.4.2, 2.0.0
>Reporter: Mike Drob
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
> Attachments: HBASE-18269.v01.patch, HBASE-18269.v02.patch, 
> HBASE-18269.v02.patch
>
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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(Cons

[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-06-20 Thread Mike Drob (JIRA)


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

Mike Drob commented on HBASE-18269:
---

Reuploading patch v2 for QA to run again.

> Jython docs out of date
> ---
>
> Key: HBASE-18269
> URL: https://issues.apache.org/jira/browse/HBASE-18269
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Affects Versions: 1.3.1, 1.2.6, 1.5.0, 1.4.2, 2.0.0
>Reporter: Mike Drob
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
> Attachments: HBASE-18269.v01.patch, HBASE-18269.v02.patch, 
> HBASE-18269.v02.patch
>
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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
(v7.6.3#76005)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-03-23 Thread Artem Ervits (JIRA)

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

Artem Ervits commented on HBASE-18269:
--

[~mdrob] pingĀ 

> Jython docs out of date
> ---
>
> Key: HBASE-18269
> URL: https://issues.apache.org/jira/browse/HBASE-18269
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Affects Versions: 1.3.1, 1.2.6, 1.5.0, 1.4.2, 2.0.0
>Reporter: Mike Drob
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
> Attachments: HBASE-18269.v01.patch, HBASE-18269.v02.patch
>
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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
(v7.6.3#76005)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-03-12 Thread Artem Ervits (JIRA)

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

Artem Ervits commented on HBASE-18269:
--

[~mdrob] ping

> Jython docs out of date
> ---
>
> Key: HBASE-18269
> URL: https://issues.apache.org/jira/browse/HBASE-18269
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Affects Versions: 2.0.0, 1.3.1, 1.2.6, 1.5.0, 1.4.2
>Reporter: Mike Drob
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
> Attachments: HBASE-18269.v01.patch, HBASE-18269.v02.patch
>
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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
(v7.6.3#76005)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-03-08 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on HBASE-18269:
---

| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m 
22s{color} | {color:blue} Docker mode activated. {color} |
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
| {color:red}-1{color} | {color:red} test4tests {color} | {color:red}  0m  
0s{color} | {color:red} The patch doesn't appear to include any new or modified 
tests. Please justify why no new tests are needed for this patch. Also please 
list what manual steps were performed to verify this patch. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  4m 
48s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  3m  
0s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  4m 
35s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  2m 
49s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:green}+1{color} | {color:green} unit {color} | {color:green}190m 
29s{color} | {color:green} root in the patch passed. {color} |
| {color:green}+1{color} | {color:green} asflicense {color} | {color:green}  0m 
29s{color} | {color:green} The patch does not generate ASF License warnings. 
{color} |
| {color:black}{color} | {color:black} {color} | {color:black}206m 48s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hbase:eee3b01 |
| JIRA Issue | HBASE-18269 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12913623/HBASE-18269.v02.patch 
|
| Optional Tests |  asflicense  javac  javadoc  unit  |
| uname | Linux 1d32d4cec1f2 3.13.0-139-generic #188-Ubuntu SMP Tue Jan 9 
14:43:09 UTC 2018 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | 
/home/jenkins/jenkins-slave/workspace/PreCommit-HBASE-Build/component/dev-support/hbase-personality.sh
 |
| git revision | master / a03d09abd7 |
| maven | version: Apache Maven 3.5.2 
(138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z) |
| Default Java | 1.8.0_151 |
|  Test Results | 
https://builds.apache.org/job/PreCommit-HBASE-Build/11869/testReport/ |
| Max. process+thread count | 4492 (vs. ulimit of 1) |
| modules | C: . U: . |
| Console output | 
https://builds.apache.org/job/PreCommit-HBASE-Build/11869/console |
| Powered by | Apache Yetus 0.7.0   http://yetus.apache.org |


This message was automatically generated.



> Jython docs out of date
> ---
>
> Key: HBASE-18269
> URL: https://issues.apache.org/jira/browse/HBASE-18269
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Affects Versions: 2.0.0, 1.3.1, 1.2.6, 1.5.0, 1.4.2
>Reporter: Mike Drob
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
> Attachments: HBASE-18269.v01.patch, HBASE-18269.v02.patch
>
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:327)
>   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>   at 
> sun.reflect.NativeConstr

[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-03-08 Thread Artem Ervits (JIRA)

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

Artem Ervits commented on HBASE-18269:
--

[~mdrob] addressing your comments, I tested both scripts and they work. I will 
appreciate you give it a try. Should I raise the issue to update the examples 
for HBase 3.x, replacing HTableDescriptor and HColumnDescriptor? Let me know.

> Jython docs out of date
> ---
>
> Key: HBASE-18269
> URL: https://issues.apache.org/jira/browse/HBASE-18269
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Affects Versions: 2.0.0, 1.3.1, 1.2.6, 1.5.0, 1.4.2
>Reporter: Mike Drob
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
> Attachments: HBASE-18269.v01.patch, HBASE-18269.v02.patch
>
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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
(v7.6.3#76005)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-03-07 Thread Mike Drob (JIRA)

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

Mike Drob commented on HBASE-18269:
---

{quote}
+Set the `$JYTHON_HOME` environment variable to pointing to
+the path to `jython.jar` and each additional Jython-related JAR needed for
{quote}
nit: this should probably say a directory containing jython.jar

{code}
-desc.addFamily(HColumnDescriptor("content:"))
...
+cDesc = HColumnDescriptor("content")
+desc.addFamily(cDesc)
{code}
Does this not work as a single line anymore?

{code}
+data = java.lang.String(result.getValue("content", "qual"))
{code}
specify utf8?

haven't tried running any of the new examples, this was visual review only. 
hopefully have time this week. 


> Jython docs out of date
> ---
>
> Key: HBASE-18269
> URL: https://issues.apache.org/jira/browse/HBASE-18269
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Affects Versions: 2.0.0, 1.3.1, 1.2.6, 1.5.0, 1.4.2
>Reporter: Mike Drob
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
> Attachments: HBASE-18269.v01.patch
>
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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
(v7.6.3#76005)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-03-07 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on HBASE-18269:
---

| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m 
24s{color} | {color:blue} Docker mode activated. {color} |
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
| {color:red}-1{color} | {color:red} test4tests {color} | {color:red}  0m  
0s{color} | {color:red} The patch doesn't appear to include any new or modified 
tests. Please justify why no new tests are needed for this patch. Also please 
list what manual steps were performed to verify this patch. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  5m 
21s{color} | {color:green} master passed {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  3m 
19s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} mvninstall {color} | {color:green}  4m 
45s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
| {color:green}+1{color} | {color:green} javadoc {color} | {color:green}  3m 
15s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:green}+1{color} | {color:green} unit {color} | {color:green}230m  
8s{color} | {color:green} root in the patch passed. {color} |
| {color:green}+1{color} | {color:green} asflicense {color} | {color:green}  0m 
32s{color} | {color:green} The patch does not generate ASF License warnings. 
{color} |
| {color:black}{color} | {color:black} {color} | {color:black}248m  7s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hbase:eee3b01 |
| JIRA Issue | HBASE-18269 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12913422/HBASE-18269.v01.patch 
|
| Optional Tests |  asflicense  javac  javadoc  unit  |
| uname | Linux 03823ecc80eb 3.13.0-135-generic #184-Ubuntu SMP Wed Oct 18 
11:55:51 UTC 2017 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | 
/home/jenkins/jenkins-slave/workspace/PreCommit-HBASE-Build/component/dev-support/hbase-personality.sh
 |
| git revision | master / 37d91cdfbb |
| maven | version: Apache Maven 3.5.2 
(138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z) |
| Default Java | 1.8.0_151 |
|  Test Results | 
https://builds.apache.org/job/PreCommit-HBASE-Build/11847/testReport/ |
| Max. process+thread count | 4625 (vs. ulimit of 1) |
| modules | C: . U: . |
| Console output | 
https://builds.apache.org/job/PreCommit-HBASE-Build/11847/console |
| Powered by | Apache Yetus 0.7.0   http://yetus.apache.org |


This message was automatically generated.



> Jython docs out of date
> ---
>
> Key: HBASE-18269
> URL: https://issues.apache.org/jira/browse/HBASE-18269
> Project: HBase
>  Issue Type: Bug
>  Components: documentation
>Affects Versions: 2.0.0, 1.3.1, 1.2.6, 1.5.0, 1.4.2
>Reporter: Mike Drob
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
> Attachments: HBASE-18269.v01.patch
>
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:327)
>   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>   at 
> sun.reflect.NativeConstructorAccessorImpl.newI

[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-03-06 Thread Artem Ervits (JIRA)

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

Artem Ervits commented on HBASE-18269:
--

[~mdrob] sure thing, I made the second example work with the following code
{code:java}
import java.lang
from org.apache.hadoop.hbase import TableName, HBaseConfiguration
from org.apache.hadoop.hbase.client import Connection, ConnectionFactory, 
Result, ResultScanner, Table, Admin
from org.apache.hadoop.conf import Configuration
conf = HBaseConfiguration.create()
connection = ConnectionFactory.createConnection(conf)
admin = connection.getAdmin()
tableName = TableName.valueOf('wiki')
table = connection.getTable(tableName)

cf = "title"
attr = "attr"
scanner = table.getScanner(cf)
while 1:
   result = scanner.next()
   if not result:
  break
   print java.lang.String(result.row), java.lang.String(result.getValue(cf, 
attr)){code}
Let me know if this suffices as the example uses result.get(col).value and I'm 
getting
{code:java}
Traceback (most recent call last):
File "", line 5, in 
AttributeError: 'org.apache.hadoop.hbase.client.Result' object has no attribute 
'get'{code}
I changed to getValue instead and now actually use the CF and Qualifier. So the 
only change in functionality is that I don't do cf="title:.*$" unless you can 
hint at how I can do that here. I can work on the second example after that.

> 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
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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
(v7.6.3#76005)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2018-03-01 Thread Mike Drob (JIRA)

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

Mike Drob commented on HBASE-18269:
---

Hi [~dbist13]! Thanks for volunteering for this!

Let me know if you need any help on this or get stuck on any part.

> 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
>Assignee: Artem Ervits
>Priority: Major
>  Labels: beginner
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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
(v7.6.3#76005)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2017-06-26 Thread stack (JIRA)

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

stack commented on HBASE-18269:
---

The  master branch gets auto-published by a script run each night set up by 
mighty Misty.

Other versions of the book are hand-made built from versions that were in the 
branch at the time.

> 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
>  Labels: beginner
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2017-06-26 Thread Mike Drob (JIRA)

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

Mike Drob commented on HBASE-18269:
---

Do we publish multiple versions of the book? It's probably important to leave 
the docs available as they are for folks who are still on old versions.

> 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
>  Labels: beginner
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2017-06-26 Thread Mike Drob (JIRA)

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

Mike Drob commented on HBASE-18269:
---

Sure, updated the description so contributors easily know where to look.

> 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
>  Labels: beginner
>
> The documentation describing how to launch Jython + HBase is out of date. - 
> https://hbase.apache.org/book.html#jython
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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)


[jira] [Commented] (HBASE-18269) Jython docs out of date

2017-06-26 Thread Sean Busbey (JIRA)

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

Sean Busbey commented on HBASE-18269:
-

can you link to the jython docs here? I thought our python examples were for 
the thrift bindings.

> 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
>  Labels: beginner
>
> 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 "", line 1, in 
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.isLegalFamilyName(HColumnDescriptor.java:566)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:470)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:425)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:390)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDescriptor.java:338)
>   at 
> org.apache.hadoop.hbase.HColumnDescriptor.(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)