Sunday, May 13, 2018

Steps for connecting to Hbase using Python

Note: First we need to start the HBase thrift server

Starting the thrift server:

Open putty and run the below command to start the thrift server

/usr/hdp/current/hbase-master/bin/ start thrift

Go to python prompt as below:

Connecting to HBase:

Run the following below in python prompt

import happybase
connection = happybase.Connection('localhost',9090,autoconnect=False)

Note: For connecting HBase "happybase" module must be present in our python

Printing the list of tables in HBase:

Use the below command to  print the list of tables in HBase


Connecting to the table and printing the rows in the table:

1 comment:

  1. A participant also may play colors, odd and even numbers, among others. A wager 카지노사이트 on a single number pays 35 to 1, together with the 0 and 00. Bets on red or black, odd and even pay 1 for 1, and even cash. In the 1960s and early Seventies, Richard Jarecki gained about $1.2 million at dozens of European casinos. He claimed that he was utilizing a mathematical system designed on a powerful computer. In reality, he simply observed greater than 10,000 spins of each roulette wheel discover out} flaws within the wheels.


  Opatch reports 'Cyclic Dependency Detected' error when patching ODI   Issue: When applying a Patch Set Update (PSU) to WebLogic Se...