Hello Sandeep, You dont have to run HiveServer for running tests. Please make sure you set JAVA_HOME correctly.
$JAVA_HOME/bin/java should exist. On Fri, Nov 6, 2015 at 11:03 AM, Sandeep <sandeep...@gmail.com> wrote: > Here are some more details. > Appreciate if any of you can help me with this. > Do I need a running hive server for this test to pass? > > > PFA the log of test runs. > > > > All the variables are set. > > These are the things i have on my .bashrc > > Do I need a hive server running on my machine? > > > > export JAVA_HOME='/usr/local/java/jdk1.8.0_65' > > export BOOST_LIBRARYDIR=/usr/lib/x86_64-linux-gnu > > export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu > > export LC_ALL="en_US.UTF-8" > > export M2_HOME=/usr/local/apache-maven-3.0.5 > > export M2=$M2_HOME/bin > > export PATH=$M2:$PATH > > > > > > # Set Hadoop-related environment variables > > export HADOOP_PREFIX=/usr/local/hadoop > > export HADOOP_HOME=/usr/local/hadoop > > export HADOOP_MAPRED_HOME=${HADOOP_HOME} > > export HADOOP_COMMON_HOME=${HADOOP_HOME} > > export HADOOP_HDFS_HOME=${HADOOP_HOME} > > export YARN_HOME=${HADOOP_HOME} > > export HADOOP_CONF_DIR=${HADOOP_HOME}/etc/hadoop > > # Native Path > > export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native > > export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib" > > #Java path > > export JAVA_HOME='/usr/local/java/jdk1.8.0_65' > > # Add Hadoop bin/ directory to PATH > > export PATH=$HADOOP_HOME/bin:$JAVA_PATH/bin:$HADOOP_HOME/sbin:$PATH > > > > > > #hive parameters > > export HIVE_HOME="/usr/local/apache-hive-1.2.1-bin" > > #for the sake of lens, use this hive > > export HIVE_HOME="/home/hduser/apache-hive-0.13.4-inm-bin" > > export PATH=$PATH:$HIVE_HOME/bin > > export HADOOP_USER_CLASSPATH_FIRST=true > > > > #apache lens > > export LENS_HOME=/usr/local/apache-lens-2.3.0-beta-bin > > export PATH=$PATH:$LENS_HOME/bin > > > > > > > > > > On Thu, Nov 5, 2015 at 12:43 AM, amareshwarisr . <amareshw...@gmail.com> > > wrote: > > > >> Sandeep, > >> > >> HiveDriver tests require JAVA_HOME to be set. Have you set it? If not, > >> this failure is never seen. Can you share more details on failure? > >> > >> Thanks, > >> Amareshwari > >> > >> On Thu, Nov 5, 2015 at 12:58 PM, Sandeep <sandeep...@gmail.com> wrote: > >> > >>> any ideas on this? > >>> > >>> On Wed, Nov 4, 2015 at 2:32 AM, Sandeep <sandeep...@gmail.com> wrote: > >>> > >>>> Thanks, this helped. > >>>> After this, it moves forward but it fails in hive driver. > >>>> I guess i need to configure the properties ?? > >>>> Appreciate your help > >>>> > >>>> On Wed, Nov 4, 2015 at 1:33 AM, Rajat Khandelwal <pro...@apache.org> > >>>> wrote: > >>>> > >>>>> Yes. We've encountered this issue earlier. I've even discussed it on > >>>>> stack > >>>>> overflow: > >>>>> > >>>>> > http://stackoverflow.com/questions/32988172/java-creating-a-date-in-pst-returns-a-date-in-pdt/32988326?noredirect=1#comment53803610_32988326 > >>>>> > >>>>> Simple solution would be to run the test cases in any other time zone > >>>>> than > >>>>> PST. You can pass -Duser.timezone=GMT to maven. > >>>>> > >>>> > >>>> > >>> > >> > > >