Follow the installation procedure to set up:
Set up HADOOP_GREMLIN_LIBS OS environment variable as of TinkerPop Documentation.
NOTE: HADOOP_GREMLIN_LIBS=/share/hadoop/common/lib seems good enough
The installation procedure should have set up the environment variables:
On the command line run:
hadoop version spark-shell --version