Questions tagged [hbase-shell]

hbase-shell is a CLI for HBase implemented in JRuby. Use this tag for HBase questions specific to the shell. For general HBase questions use [hbase] instead.

hbase-shell is a CLI for HBase implemented in JRuby.

References

41 questions
0
votes
1 answer

Cannot create table in hbase shell : org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

I am trying to create a table in hbase shell using the command hbaseshell> create 'person', 'info' The command does not executes successfully and throws an error as below: ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing …
User9123
  • 19
  • 8
0
votes
1 answer

hbase shell commands using singlecolumnvalue filter

I am new to Hbase world and trying the below query. I triggered the below hbase command form shell. I expect to retrieve only the rows which match the filtering criteria: rows matching the column name 'serviceId' with value '61490992624'. However,…
Siva
  • 25
  • 9
0
votes
1 answer

Hbase rowkey with space

Can a rowkey have a space and some special characters like & ? Example - USA.new York.383937.abc@.1000 Is this a good practice ?
RData
  • 959
  • 1
  • 13
  • 33
0
votes
1 answer

Scan HTable rows for column value between two timestamp

Scan HTable rows for column value between two timestamp. Timestamp filter & setTimeRange works on the timestamp set by hbase, but in my case I have a difference column which contains the timestamp and want to make a query on that timestamp. So is…
agrawal1084
  • 129
  • 2
  • 11
0
votes
1 answer

how to use HBase shell after starting hbase in cluster mode

I have three nodes, a master and two slaves (running as region servers), I initiated the hbase, it says, starting master...starting slave1 ... starting slvae2... (zookeeper is running in the backend). Now, I did jps on each of the machines and I…
saichand
  • 1,165
  • 1
  • 10
  • 25
0
votes
1 answer

Shell script for hbase commands | count 'table'

I am trying to get the counts of a list of tables in hbase using the count command. I am currently placing all command in input.txt. Sample input count 'test.table1', INTERVAL => 10000000, CACHE => 10000000 count 'test.table2', INTERVAL =>…
keeplearning
  • 369
  • 2
  • 6
  • 17
0
votes
1 answer

In HBase shell,how to scan the latest 5 data in a row?

My HBase table name is "recommend",I have inserted into 5 rows data. Just like put 'recommend','1','info:itemId',"1:1" put 'recommend','1','info:itemId',"1:2" put 'recommend','1','info:itemId',"1:3" put 'recommend','1','info:itemId',"1:4" …
Chen.caijun
  • 104
  • 2
  • 11
0
votes
1 answer

Hbase Scan returning data out of range

I was doing a scan using startRowKey and StopRowKey in HBase scan using HBase shell, but the output what I am receiving is outside the range passed. Please refer the Hbase Query - import org.apache.hadoop.hbase.filter.CompareFilter import…
Rishi Arora
  • 1,713
  • 3
  • 16
  • 31
0
votes
1 answer

Overwriting HBase id

What happens when I add duplicate entry to hbase table. Happened to see updated timestamp to the column. Is there any property in hbase that have options to avoid/allow overwriting while adding to the table?
sathish
  • 65
  • 8
0
votes
0 answers

hbase select few column and apply filter

I am new to hbase and trying to write below query in hbase shell Select f1,f2, sum(f3) from t1 where f1<3 group by f1,f2 OR Select f1,f2 from t1 where f1<3 I put the data into hbase hbase(main):022:0> scan 't1' ROW …
Ajay
  • 783
  • 3
  • 16
  • 37
0
votes
1 answer

HBase Shell - Create a reduced table from existing Hbase table

I want to create a reduced version of an HBase Table via Hbase shell. For example: HBase Table 'test' is already present in HBase with following info: TableName: 'test' ColumnFamily: 'f' Columns: 'f:col1', 'f:col2', 'f:col3', 'f:col4' I want to…
Sachin Jain
  • 21,353
  • 33
  • 103
  • 168
1 2
3