How to Run LoadJsonExample When the Store is Secure
To execute LoadExampleJson
against the secure store that you deployed and provisioned with a non-administrative user according to the steps presented in the Deploying a Secure Store appendix, an additional parameter must be added to the command line above. In this case, type the following on the command line:
java -classpath \
/opt/oracle/kv-ee/lib/kvstore.jar:\
/opt/oracle/kv-ee/lib/sklogger.jar:\
/opt/oracle/kv-ee/lib/commonutil.jar:examples \
[-Djava.util.logging.config.file=/opt/oracle/nosql/\
apps/kv/examples/hadoop/hive/es/\
example-logging.properties] \
hadoop.hive.table.es.LoadExampleJson \
-store example-store -host kv-host-1 -port 5000 \
-file /opt/oracle/nosql/apps/kv/examples/\
hadoop/hive/ex/govtrack-senators-example.json \
–table exampleJsonTable \
-security /tmp/example-user-client-pwdfile.login \
[-delete]
As explained in the CountTableRows Support Programs appendix, the additional -security
parameter in the command above specifies the location of the login properties file for the given user or alias. All other parameters are the same as for the non-secure case.