I am trying to start a Hive server using Java program.
This is my Java code.
p = Runtime.getRuntime().exec("/home/bigdata/hive/bin/hive --service hiveserver");
p.waitFor();
Error:
Cannot find hadoop installation: $HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the path
I started my hdfs. But also i am getting this error