[jira] [Commented] (HBASE-29457) thrift1/DemoClient.py is not running
[
https://issues.apache.org/jira/browse/HBASE-29457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18063458#comment-18063458
]
Hudson commented on HBASE-29457:
Results for branch branch-2
[build #1397 on
builds.a.o|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/1397/]:
(x) *{color:red}-1 overall{color}*
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/1397/General_20Nightly_20Build_20Report/]
(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2)
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/1397/JDK8_20Nightly_20Build_20Report_20_28Hadoop2_29/]
(x) {color:red}-1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3)
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/1397/JDK8_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(x) {color:red}-1 jdk11 hadoop3 checks{color}
-- For more information [see jdk11
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/1397/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(x) {color:red}-1 jdk17 hadoop3 checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/1397/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.3.5 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/1397/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.3.6 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/1397/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.4.0 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/1397/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.4.1 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/1397/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
> thrift1/DemoClient.py is not running
>
>
> Key: HBASE-29457
> URL: https://issues.apache.org/jira/browse/HBASE-29457
> Project: HBase
> Issue Type: Improvement
>Reporter: Kevin Geiszler
>Assignee: Xiao Liu
>Priority: Minor
> Labels: pull-request-available
> Fix For: 2.7.0, 3.0.0-beta-2, 2.6.5, 2.5.14
>
> Attachments: democlient-output.txt, thrift-output.txt
>
>
> HBASE-29454 converts the following scripts from Python 2 to Python 3 and
> fixes some import errors:
> {code:java}
> hbase-examples/src/main/python/thrift1/DemoClient.py
> hbase-examples/src/main/python/thrift1/demo_hbase_thrift_over_http_tls.py
> hbase-examples/src/main/python/thrift2/DemoClient.py
> {code}
> After these changes, the thrift1/DemoClient.py script gets the following
> error when trying to run it:
> {code:java}
> % bin/start-hbase.sh
> % bin/hbase thrift start
> # Separate Terminal window
> % python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
> scanning tables...
> found: b'kg_table'
> found: b'kg_table2'
> found: b'kg_table3'
> found: b't1'
> found: b'test'
> creating table: demo_table
> Traceback (most recent call last):
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 212, in
> demo_client(host, port, is_framed_transport)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 92, in demo_client
> client.createTable(t, columns)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 988, in createTable
> self.send_createTable(tableName, columnFamilies)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 996, in send_createTable
> args.write(self._oprot)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 4973, in write
> oprot.writeBinary(self.tableName)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/protocol/TBinaryProtocol.py",
> line 132, in writeBinary
> self.trans.write(str)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 174, in write
> raise e
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.1
[jira] [Commented] (HBASE-29457) thrift1/DemoClient.py is not running
[
https://issues.apache.org/jira/browse/HBASE-29457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18062614#comment-18062614
]
Hudson commented on HBASE-29457:
Results for branch branch-2.6
[build #431 on
builds.a.o|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.6/431/]:
(x) *{color:red}-1 overall{color}*
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.6/431/General_20Nightly_20Build_20Report/]
(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2)
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.6/431/JDK8_20Nightly_20Build_20Report_20_28Hadoop2_29/]
(x) {color:red}-1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3)
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.6/431/JDK8_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk11 hadoop3 checks{color}
-- For more information [see jdk11
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.6/431/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(x) {color:red}-1 jdk17 hadoop3 checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.6/431/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.3.5 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.6/431/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.3.6 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.6/431/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.4.0 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.6/431/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(x) {color:red}-1 jdk17 hadoop 3.4.1 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.6/431/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
(/) {color:green}+1 client integration test for HBase 2 {color}
(/) {color:green}+1 client integration test for 3.3.5 {color}
(/) {color:green}+1 client integration test for 3.3.6 {color}
(/) {color:green}+1 client integration test for 3.4.0 {color}
(/) {color:green}+1 client integration test for 3.4.1 {color}
(/) {color:green}+1 client integration test for 3.4.2 {color}
> thrift1/DemoClient.py is not running
>
>
> Key: HBASE-29457
> URL: https://issues.apache.org/jira/browse/HBASE-29457
> Project: HBase
> Issue Type: Improvement
>Reporter: Kevin Geiszler
>Assignee: Xiao Liu
>Priority: Minor
> Labels: pull-request-available
> Fix For: 2.7.0, 3.0.0-beta-2, 2.6.5, 2.5.14
>
> Attachments: democlient-output.txt, thrift-output.txt
>
>
> HBASE-29454 converts the following scripts from Python 2 to Python 3 and
> fixes some import errors:
> {code:java}
> hbase-examples/src/main/python/thrift1/DemoClient.py
> hbase-examples/src/main/python/thrift1/demo_hbase_thrift_over_http_tls.py
> hbase-examples/src/main/python/thrift2/DemoClient.py
> {code}
> After these changes, the thrift1/DemoClient.py script gets the following
> error when trying to run it:
> {code:java}
> % bin/start-hbase.sh
> % bin/hbase thrift start
> # Separate Terminal window
> % python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
> scanning tables...
> found: b'kg_table'
> found: b'kg_table2'
> found: b'kg_table3'
> found: b't1'
> found: b'test'
> creating table: demo_table
> Traceback (most recent call last):
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 212, in
> demo_client(host, port, is_framed_transport)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 92, in demo_client
> client.createTable(t, columns)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 988, in createTable
> self.send_createTable(tableName, columnFamilies)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 996, in send_createTable
> args.write(self._oprot)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen
[jira] [Commented] (HBASE-29457) thrift1/DemoClient.py is not running
[
https://issues.apache.org/jira/browse/HBASE-29457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18062499#comment-18062499
]
Xiao Liu commented on HBASE-29457:
--
Thanks [~guluo] for reviewing and merging!
> thrift1/DemoClient.py is not running
>
>
> Key: HBASE-29457
> URL: https://issues.apache.org/jira/browse/HBASE-29457
> Project: HBase
> Issue Type: Improvement
>Reporter: Kevin Geiszler
>Assignee: Xiao Liu
>Priority: Minor
> Labels: pull-request-available
> Fix For: 2.7.0, 3.0.0-beta-2, 2.6.5, 2.5.14
>
> Attachments: democlient-output.txt, thrift-output.txt
>
>
> HBASE-29454 converts the following scripts from Python 2 to Python 3 and
> fixes some import errors:
> {code:java}
> hbase-examples/src/main/python/thrift1/DemoClient.py
> hbase-examples/src/main/python/thrift1/demo_hbase_thrift_over_http_tls.py
> hbase-examples/src/main/python/thrift2/DemoClient.py
> {code}
> After these changes, the thrift1/DemoClient.py script gets the following
> error when trying to run it:
> {code:java}
> % bin/start-hbase.sh
> % bin/hbase thrift start
> # Separate Terminal window
> % python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
> scanning tables...
> found: b'kg_table'
> found: b'kg_table2'
> found: b'kg_table3'
> found: b't1'
> found: b'test'
> creating table: demo_table
> Traceback (most recent call last):
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 212, in
> demo_client(host, port, is_framed_transport)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 92, in demo_client
> client.createTable(t, columns)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 988, in createTable
> self.send_createTable(tableName, columnFamilies)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 996, in send_createTable
> args.write(self._oprot)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 4973, in write
> oprot.writeBinary(self.tableName)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/protocol/TBinaryProtocol.py",
> line 132, in writeBinary
> self.trans.write(str)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 174, in write
> raise e
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 170, in write
> self.__wbuf.write(buf)
> TypeError: a bytes-like object is required, not 'str'{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
[jira] [Commented] (HBASE-29457) thrift1/DemoClient.py is not running
[
https://issues.apache.org/jira/browse/HBASE-29457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18061887#comment-18061887
]
Hudson commented on HBASE-29457:
Results for branch branch-3
[build #529 on
builds.a.o|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/529/]:
(x) *{color:red}-1 overall{color}*
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/529/General_20Nightly_20Build_20Report/]
(x) {color:red}-1 jdk17 hadoop3 checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/529/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(x) {color:red}-1 jdk17 hadoop 3.3.5 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/529/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(x) {color:red}-1 jdk17 hadoop 3.3.6 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/529/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.4.0 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/529/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.4.1 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-3/529/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
(/) {color:green}+1 client integration test for 3.3.5 {color}
(/) {color:green}+1 client integration test for 3.3.6 {color}
(/) {color:green}+1 client integration test for 3.4.0 {color}
(/) {color:green}+1 client integration test for 3.4.1 {color}
(/) {color:green}+1 client integration test for 3.4.2 {color}
> thrift1/DemoClient.py is not running
>
>
> Key: HBASE-29457
> URL: https://issues.apache.org/jira/browse/HBASE-29457
> Project: HBase
> Issue Type: Improvement
>Reporter: Kevin Geiszler
>Assignee: Kevin Geiszler
>Priority: Minor
> Labels: pull-request-available
> Attachments: democlient-output.txt, thrift-output.txt
>
>
> HBASE-29454 converts the following scripts from Python 2 to Python 3 and
> fixes some import errors:
> {code:java}
> hbase-examples/src/main/python/thrift1/DemoClient.py
> hbase-examples/src/main/python/thrift1/demo_hbase_thrift_over_http_tls.py
> hbase-examples/src/main/python/thrift2/DemoClient.py
> {code}
> After these changes, the thrift1/DemoClient.py script gets the following
> error when trying to run it:
> {code:java}
> % bin/start-hbase.sh
> % bin/hbase thrift start
> # Separate Terminal window
> % python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
> scanning tables...
> found: b'kg_table'
> found: b'kg_table2'
> found: b'kg_table3'
> found: b't1'
> found: b'test'
> creating table: demo_table
> Traceback (most recent call last):
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 212, in
> demo_client(host, port, is_framed_transport)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 92, in demo_client
> client.createTable(t, columns)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 988, in createTable
> self.send_createTable(tableName, columnFamilies)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 996, in send_createTable
> args.write(self._oprot)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 4973, in write
> oprot.writeBinary(self.tableName)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/protocol/TBinaryProtocol.py",
> line 132, in writeBinary
> self.trans.write(str)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 174, in write
> raise e
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 170, in write
> self.__wbuf.write(buf)
> TypeError: a bytes-like object is required, not 'str'{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
[jira] [Commented] (HBASE-29457) thrift1/DemoClient.py is not running
[
https://issues.apache.org/jira/browse/HBASE-29457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18056903#comment-18056903
]
Xiao Liu commented on HBASE-29457:
--
Hi, [~guluo], thanks for reviewing and merging, PR for branch-3 has been
created, please help take a look when free, thanks!
* [https://github.com/apache/hbase/pull/7710]
* https://github.com/apache/hbase/pull/7711
> thrift1/DemoClient.py is not running
>
>
> Key: HBASE-29457
> URL: https://issues.apache.org/jira/browse/HBASE-29457
> Project: HBase
> Issue Type: Improvement
>Reporter: Kevin Geiszler
>Assignee: Kevin Geiszler
>Priority: Minor
> Labels: pull-request-available
> Attachments: democlient-output.txt, thrift-output.txt
>
>
> HBASE-29454 converts the following scripts from Python 2 to Python 3 and
> fixes some import errors:
> {code:java}
> hbase-examples/src/main/python/thrift1/DemoClient.py
> hbase-examples/src/main/python/thrift1/demo_hbase_thrift_over_http_tls.py
> hbase-examples/src/main/python/thrift2/DemoClient.py
> {code}
> After these changes, the thrift1/DemoClient.py script gets the following
> error when trying to run it:
> {code:java}
> % bin/start-hbase.sh
> % bin/hbase thrift start
> # Separate Terminal window
> % python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
> scanning tables...
> found: b'kg_table'
> found: b'kg_table2'
> found: b'kg_table3'
> found: b't1'
> found: b'test'
> creating table: demo_table
> Traceback (most recent call last):
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 212, in
> demo_client(host, port, is_framed_transport)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 92, in demo_client
> client.createTable(t, columns)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 988, in createTable
> self.send_createTable(tableName, columnFamilies)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 996, in send_createTable
> args.write(self._oprot)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 4973, in write
> oprot.writeBinary(self.tableName)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/protocol/TBinaryProtocol.py",
> line 132, in writeBinary
> self.trans.write(str)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 174, in write
> raise e
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 170, in write
> self.__wbuf.write(buf)
> TypeError: a bytes-like object is required, not 'str'{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
[jira] [Commented] (HBASE-29457) thrift1/DemoClient.py is not running
[
https://issues.apache.org/jira/browse/HBASE-29457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18056883#comment-18056883
]
guluo commented on HBASE-29457:
---
So, Please open a new PR for branch-3, thanks!
> thrift1/DemoClient.py is not running
>
>
> Key: HBASE-29457
> URL: https://issues.apache.org/jira/browse/HBASE-29457
> Project: HBase
> Issue Type: Improvement
>Reporter: Kevin Geiszler
>Assignee: Kevin Geiszler
>Priority: Minor
> Labels: pull-request-available
> Attachments: democlient-output.txt, thrift-output.txt
>
>
> HBASE-29454 converts the following scripts from Python 2 to Python 3 and
> fixes some import errors:
> {code:java}
> hbase-examples/src/main/python/thrift1/DemoClient.py
> hbase-examples/src/main/python/thrift1/demo_hbase_thrift_over_http_tls.py
> hbase-examples/src/main/python/thrift2/DemoClient.py
> {code}
> After these changes, the thrift1/DemoClient.py script gets the following
> error when trying to run it:
> {code:java}
> % bin/start-hbase.sh
> % bin/hbase thrift start
> # Separate Terminal window
> % python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
> scanning tables...
> found: b'kg_table'
> found: b'kg_table2'
> found: b'kg_table3'
> found: b't1'
> found: b'test'
> creating table: demo_table
> Traceback (most recent call last):
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 212, in
> demo_client(host, port, is_framed_transport)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 92, in demo_client
> client.createTable(t, columns)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 988, in createTable
> self.send_createTable(tableName, columnFamilies)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 996, in send_createTable
> args.write(self._oprot)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 4973, in write
> oprot.writeBinary(self.tableName)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/protocol/TBinaryProtocol.py",
> line 132, in writeBinary
> self.trans.write(str)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 174, in write
> raise e
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 170, in write
> self.__wbuf.write(buf)
> TypeError: a bytes-like object is required, not 'str'{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
[jira] [Commented] (HBASE-29457) thrift1/DemoClient.py is not running
[
https://issues.apache.org/jira/browse/HBASE-29457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18055671#comment-18055671
]
Hudson commented on HBASE-29457:
Results for branch master
[build #1401 on
builds.a.o|https://ci-hbase.apache.org/job/HBase%20Nightly/job/master/1401/]:
(x) *{color:red}-1 overall{color}*
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/master/1401/General_20Nightly_20Build_20Report/]
(x) {color:red}-1 jdk17 hadoop3 checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/master/1401/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(x) {color:red}-1 jdk17 hadoop 3.3.5 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/master/1401/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(x) {color:red}-1 jdk17 hadoop 3.3.6 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/master/1401/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.4.0 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/master/1401/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk17 hadoop 3.4.1 backward compatibility checks{color}
-- For more information [see jdk17
report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/master/1401/JDK17_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
(/) {color:green}+1 client integration test for 3.3.5 {color}
(/) {color:green}+1 client integration test for 3.3.6 {color}
(/) {color:green}+1 client integration test for 3.4.0 {color}
(/) {color:green}+1 client integration test for 3.4.1 {color}
(/) {color:green}+1 client integration test for 3.4.2 {color}
> thrift1/DemoClient.py is not running
>
>
> Key: HBASE-29457
> URL: https://issues.apache.org/jira/browse/HBASE-29457
> Project: HBase
> Issue Type: Improvement
>Reporter: Kevin Geiszler
>Assignee: Kevin Geiszler
>Priority: Minor
> Labels: pull-request-available
> Attachments: democlient-output.txt, thrift-output.txt
>
>
> HBASE-29454 converts the following scripts from Python 2 to Python 3 and
> fixes some import errors:
> {code:java}
> hbase-examples/src/main/python/thrift1/DemoClient.py
> hbase-examples/src/main/python/thrift1/demo_hbase_thrift_over_http_tls.py
> hbase-examples/src/main/python/thrift2/DemoClient.py
> {code}
> After these changes, the thrift1/DemoClient.py script gets the following
> error when trying to run it:
> {code:java}
> % bin/start-hbase.sh
> % bin/hbase thrift start
> # Separate Terminal window
> % python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
> scanning tables...
> found: b'kg_table'
> found: b'kg_table2'
> found: b'kg_table3'
> found: b't1'
> found: b'test'
> creating table: demo_table
> Traceback (most recent call last):
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 212, in
> demo_client(host, port, is_framed_transport)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 92, in demo_client
> client.createTable(t, columns)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 988, in createTable
> self.send_createTable(tableName, columnFamilies)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 996, in send_createTable
> args.write(self._oprot)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 4973, in write
> oprot.writeBinary(self.tableName)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/protocol/TBinaryProtocol.py",
> line 132, in writeBinary
> self.trans.write(str)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 174, in write
> raise e
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 170, in write
> self.__wbuf.write(buf)
> TypeError: a bytes-like object is required, not 'str'{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
[jira] [Commented] (HBASE-29457) thrift1/DemoClient.py is not running
[
https://issues.apache.org/jira/browse/HBASE-29457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045526#comment-18045526
]
Xiao Liu commented on HBASE-29457:
--
Hi, [~kgeiszler], I have modified DemoClient.py and aligned it with the logic
on the Java side. Could you help to try again and review the code based on the
content of the new PR.
> thrift1/DemoClient.py is not running
>
>
> Key: HBASE-29457
> URL: https://issues.apache.org/jira/browse/HBASE-29457
> Project: HBase
> Issue Type: Improvement
>Reporter: Kevin Geiszler
>Assignee: Kevin Geiszler
>Priority: Minor
> Labels: pull-request-available
> Attachments: democlient-output.txt, thrift-output.txt
>
>
> HBASE-29454 converts the following scripts from Python 2 to Python 3 and
> fixes some import errors:
> {code:java}
> hbase-examples/src/main/python/thrift1/DemoClient.py
> hbase-examples/src/main/python/thrift1/demo_hbase_thrift_over_http_tls.py
> hbase-examples/src/main/python/thrift2/DemoClient.py
> {code}
> After these changes, the thrift1/DemoClient.py script gets the following
> error when trying to run it:
> {code:java}
> % bin/start-hbase.sh
> % bin/hbase thrift start
> # Separate Terminal window
> % python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
> scanning tables...
> found: b'kg_table'
> found: b'kg_table2'
> found: b'kg_table3'
> found: b't1'
> found: b'test'
> creating table: demo_table
> Traceback (most recent call last):
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 212, in
> demo_client(host, port, is_framed_transport)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 92, in demo_client
> client.createTable(t, columns)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 988, in createTable
> self.send_createTable(tableName, columnFamilies)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 996, in send_createTable
> args.write(self._oprot)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 4973, in write
> oprot.writeBinary(self.tableName)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/protocol/TBinaryProtocol.py",
> line 132, in writeBinary
> self.trans.write(str)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 174, in write
> raise e
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 170, in write
> self.__wbuf.write(buf)
> TypeError: a bytes-like object is required, not 'str'{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
[jira] [Commented] (HBASE-29457) thrift1/DemoClient.py is not running
[
https://issues.apache.org/jira/browse/HBASE-29457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18017091#comment-18017091
]
Kevin Geiszler commented on HBASE-29457:
Could this be an issue with thrift? I initially wondered if the script is
trying to get the row too quickly after performing a mutation.
cc. [~stack] I see you worked on this script a long time ago
> thrift1/DemoClient.py is not running
>
>
> Key: HBASE-29457
> URL: https://issues.apache.org/jira/browse/HBASE-29457
> Project: HBase
> Issue Type: Improvement
>Reporter: Kevin Geiszler
>Assignee: Kevin Geiszler
>Priority: Minor
> Attachments: democlient-output.txt, thrift-output.txt
>
>
> HBASE-29454 converts the following scripts from Python 2 to Python 3 and
> fixes some import errors:
> {code:java}
> hbase-examples/src/main/python/thrift1/DemoClient.py
> hbase-examples/src/main/python/thrift1/demo_hbase_thrift_over_http_tls.py
> hbase-examples/src/main/python/thrift2/DemoClient.py
> {code}
> After these changes, the thrift1/DemoClient.py script gets the following
> error when trying to run it:
> {code:java}
> % bin/start-hbase.sh
> % bin/hbase thrift start
> # Separate Terminal window
> % python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
> scanning tables...
> found: b'kg_table'
> found: b'kg_table2'
> found: b'kg_table3'
> found: b't1'
> found: b'test'
> creating table: demo_table
> Traceback (most recent call last):
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 212, in
> demo_client(host, port, is_framed_transport)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 92, in demo_client
> client.createTable(t, columns)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 988, in createTable
> self.send_createTable(tableName, columnFamilies)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 996, in send_createTable
> args.write(self._oprot)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 4973, in write
> oprot.writeBinary(self.tableName)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/protocol/TBinaryProtocol.py",
> line 132, in writeBinary
> self.trans.write(str)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 174, in write
> raise e
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 170, in write
> self.__wbuf.write(buf)
> TypeError: a bytes-like object is required, not 'str'{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
[jira] [Commented] (HBASE-29457) thrift1/DemoClient.py is not running
[
https://issues.apache.org/jira/browse/HBASE-29457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18017090#comment-18017090
]
Kevin Geiszler commented on HBASE-29457:
I have run into an issue that I can't get past while trying to fix this script.
The script will fail when it gets to a part where it iterative performs the
same operations on a list of rows. For example, the script will start at Row
100, perform some mutations, and retrieve the rows. It will do the same with
Row 99, Row 98, etc. The script is failing when trying to retrieve a data for a
row, and it fails for a different row each time. Adding a sleep helps, but the
script usually just fails later as a result rather than not at all. I also
tried adding a retry mechanism, but that doesn't seem to do anything. Does
anyone have any ideas about why this error is occurring?
Some info on how to reproduce the issue:
My branch is at:
[https://github.com/kgeisz/hbase/tree/HBASE-29457-thrift1-democlient-py]
Here is a diff of the commits I have so far (including debug messages):
[https://github.com/apache/hbase/compare/master...kgeisz:hbase:HBASE-29457-thrift1-democlient-py]
To run the script, first start hbase and thrift:
{code:java}
cd hbase
bin/start-hbase.sh
bin/hbase thrift start {code}
In another window, create a python environment, install thrift, and run the
script with the default host and port for thrift:
{code:java}
cd hbase
python -m venv py-env
source py-env/bin/activate
pip3 install thrift
python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
{code}
I have attached the script's output and the thrift output.
> thrift1/DemoClient.py is not running
>
>
> Key: HBASE-29457
> URL: https://issues.apache.org/jira/browse/HBASE-29457
> Project: HBase
> Issue Type: Improvement
>Reporter: Kevin Geiszler
>Assignee: Kevin Geiszler
>Priority: Minor
> Attachments: democlient-output.txt, thrift-output.txt
>
>
> HBASE-29454 converts the following scripts from Python 2 to Python 3 and
> fixes some import errors:
> {code:java}
> hbase-examples/src/main/python/thrift1/DemoClient.py
> hbase-examples/src/main/python/thrift1/demo_hbase_thrift_over_http_tls.py
> hbase-examples/src/main/python/thrift2/DemoClient.py
> {code}
> After these changes, the thrift1/DemoClient.py script gets the following
> error when trying to run it:
> {code:java}
> % bin/start-hbase.sh
> % bin/hbase thrift start
> # Separate Terminal window
> % python3 hbase-examples/src/main/python/thrift1/DemoClient.py localhost 9090
> scanning tables...
> found: b'kg_table'
> found: b'kg_table2'
> found: b'kg_table3'
> found: b't1'
> found: b'test'
> creating table: demo_table
> Traceback (most recent call last):
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 212, in
> demo_client(host, port, is_framed_transport)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/DemoClient.py",
> line 92, in demo_client
> client.createTable(t, columns)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 988, in createTable
> self.send_createTable(tableName, columnFamilies)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 996, in send_createTable
> args.write(self._oprot)
> File
> "/Users/kgeiszler/projects/hbase/hbase-examples/src/main/python/thrift1/gen_py/hbase/Hbase.py",
> line 4973, in write
> oprot.writeBinary(self.tableName)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/protocol/TBinaryProtocol.py",
> line 132, in writeBinary
> self.trans.write(str)
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 174, in write
> raise e
> File
> "/Users/kgeiszler/projects/hbase/py-env/lib/python3.11/site-packages/thrift/transport/TTransport.py",
> line 170, in write
> self.__wbuf.write(buf)
> TypeError: a bytes-like object is required, not 'str'{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
