6.27

Load Iris data into HBase via Eclipse
o Open a new Terminal and start up Eclipse
su Poulin
eclipse
o Run->Run Configurations…
o Java Application-> (right click) -> New
o Click on the New_configuration to edit its settings on the right
o Configure the runtime options as:
• Name: IrisLoad
• Main->Project: bcounts
• Main->Main class: com.cloudera.bayesiancounters.util.Driver
• Arguments->Program arguments: loader /home/poulin/bcounts-0.1.0-SNAPSHOT/examples/data/iris.data iris
• Arguments->VM arguments: -Dlog4j.configuration=file:debug-log4j.properties
o Click on Apply, then Click on Run and then view the Console tab of the parent window
o Once the data is loaded, Close Eclipse

6.28

View Iris data and schema in HBase
# view some of the data
echo “scan ‘iris’” | hbase shell | tail
# view the schema via the Stargate interface
firefox http://h12.demo.dev:8080/iris/schema

6.29

Perform NB inference on the Iris dataset
Note: NB inference must be executed within 300 seconds of loading iris data into hbase, or modify the 300 in the following steps to a larger number of seconds while testing
o Open a new Terminal and start up Eclipse
su poulin
eclipse
o Run->Run Configurations…
o Java Application-> (right click) -> New
o Click on the New_configuration to edit its settings on the right
o Configure the runtime options as:
• Name: IrisInference
• Main->Project: bcounts
• Main->Main class: com.cloudera.bayesiancounters.util.Driver
• Arguments->Program arguments: nb iris 300 “sepal_length=5;petal_length=1.4″ class=2