Comments (8)
That should definitely work. Have you actually tried the minimal example from your bug report? Unfortunately the error messages from the Thrift layer are not always clear. Can you provide the exact error message?
from happybase.
Ah, I think you forgot to specify a column family. The column name should be something like cf1:col1, not just col1.
from happybase.
row = str("row")
col1 = str("fam1:col1")
value1 = str("value1")
table.put( row , {col1: value1})
Actually, after specifying the family too it did fail. I got the same error message. I pasted the error message from thrift server below.
13/02/01 13:45:17 WARN thrift.ThriftServerRunner$HBaseHandler: Failed 1 action: DoNotRetryIOException: 1 time, servers with issues: LucidN23:60020,
org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException: Failed 1 action: DoNotRetryIOException: 1 time, servers with issues: LucidN23:60020,
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.processBatchCallback(HConnectionManager.java:1601)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.processBatch(HConnectionManager.java:1377)
at org.apache.hadoop.hbase.client.HTable.flushCommits(HTable.java:916)
at org.apache.hadoop.hbase.client.HTable.doPut(HTable.java:772)
at org.apache.hadoop.hbase.client.HTable.put(HTable.java:755)
at org.apache.hadoop.hbase.thrift.ThriftServerRunner$HBaseHandler.mutateRowsTs(ThriftServerRunner.java:1058)
at org.apache.hadoop.hbase.thrift.ThriftServerRunner$HBaseHandler.mutateRows(ThriftServerRunner.java:1007)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.hbase.thrift.HbaseHandlerMetricsProxy.invoke(HbaseHandlerMetricsProxy.java:65)
at $Proxy6.mutateRows(Unknown Source)
at org.apache.hadoop.hbase.thrift.generated.Hbase$Processor$mutateRows.getResult(Hbase.java:4110)
at org.apache.hadoop.hbase.thrift.generated.Hbase$Processor$mutateRows.getResult(Hbase.java:4098)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
at org.apache.hadoop.hbase.thrift.TBoundedThreadPoolServer$ClientConnnection.run(TBoundedThreadPoolServer.java:287)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
The error from python side is
Traceback (most recent call last):
File "uploadDataHbase.py", line 15, in
table.put( row , {col1: value1})
File "/usr/local/lib/python2.7/dist-packages/happybase/api.py", line 618, in put
batch.put(row, data)
File "/usr/local/lib/python2.7/dist-packages/happybase/api.py", line 841, in exit
self.send()
File "/usr/local/lib/python2.7/dist-packages/happybase/api.py", line 779, in send
self.table.client.mutateRows(self.table.name, bms)
File "/usr/local/lib/python2.7/dist-packages/happybase/hbase/Hbase.py", line 1450, in mutateRows
self.recv_mutateRows()
File "/usr/local/lib/python2.7/dist-packages/happybase/hbase/Hbase.py", line 1472, in recv_mutateRows
raise result.io
happybase.hbase.ttypes.IOError: IOError(_message='Failed 1 action: DoNotRetryIOException: 1 time, servers with issues: LucidN23:60020, ')
I get the error message only when i do a 'put' operation. I am able to scan well without any errors
Thank you
from happybase.
Does the table exist? Does the column family exist? What does table.families()
return?
from happybase.
Sorry about that. I was more worried about Byte conversion that i forgot to check families.
After i created the column family, it did work :)
Thanks man
from happybase.
Glad to hear. Feel free to ask help for any other issues you may have.
from happybase.
Hi i am getting this error, Please help me.
happybase.hbase.ttypes.IOError: IOError(_message='org.apache.hadoop.hbase.NamespaceNotFoundException: Crawler)
from happybase.
that's unrelated, and lacks information. can't help you with that
from happybase.
Related Issues (20)
- Fix simple typo: specifed, -> specified,
- How does happyhbase fuzzy query rowkey HOT 3
- Support Pre-Split when create table ?
- HBase remotely connecting to python project HOT 7
- Support gevent?
- suppot count table rows? HOT 1
- org.apache.hadoop.hbase.NamespaceNotFoundException: HOT 4
- [feature] Support reconnect host when connectionpool raise error HOT 2
- thriftpy2.protocol.exc.TProtocolException: Bad protocol id in the message: 72 HOT 4
- happybase 1.2.0 supports hbase 2.2.5 ? HOT 1
- How can I do a query for specific columns by regex-statement HOT 2
- TTransportException: TTransportException(type=4, message='TSocket read 0 bytes') HOT 4
- TypeError: __str__ returned non-string (type bytes) hbase HOT 6
- import happybase error HOT 1
- Does it support snapshot management? HOT 1
- Is there a way to update / modify TTL (time to leave) on already created table ? HOT 1
- Hbase compatibility
- Table Put - How Do We Assign And Use A Variable For the 'Row Key' HOT 8
- compact_table major no work
- 使用happybase创建连接池并扫描整张表一段时间以后报错 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from happybase.