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/hbase-daemon.sh 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)
connection.open()
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
print(connection.tables())
Connecting to the table and printing the rows in the table:
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.
ReplyDelete