You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by Sandeep <sa...@gmail.com> on 2015/11/04 10:14:40 UTC

Test run failure

Hi,
I am testing a local change by running mvn clean package.
I get the following error.
Results :

Failed tests:
  UpdatePeriodTest.testFormat:57 expected [Sun Nov 03 01:34:56 PST 2013]
but found [Sun Nov 03 01:34:56 PDT 2013]
  UpdatePeriodTest.testFormat:57 expected [Sun Nov 05 01:00:00 PST 2017]
but found [Sun Nov 05 01:00:00 PDT 2017]
  UpdatePeriodTest.testFormat:57 expected [Sun Nov 01 01:41:19 PST 2009]
but found [Sun Nov 01 01:41:19 PDT 2009]

Tests run: 291, Failures: 3, Errors: 0, Skipped: 0


Any ideas, how i can rectify this?

thx
Sandeep

Re: Test run failure

Posted by "amareshwarisr ." <am...@gmail.com>.
Can we have a tracking issue for this?

On Wed, Nov 4, 2015 at 3:03 PM, Rajat Khandelwal <pr...@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.
>

Re: Test run failure

Posted by "amareshwarisr ." <am...@gmail.com>.
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 <sa...@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 . <am...@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 <sa...@gmail.com> wrote:
> >>
> >>> any ideas on this?
> >>>
> >>> On Wed, Nov 4, 2015 at 2:32 AM, Sandeep <sa...@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 <pr...@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.
> >>>>>
> >>>>
> >>>>
> >>>
> >>
> >
>

Re: Test run failure

Posted by Sandeep <sa...@gmail.com>.
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 . <am...@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 <sa...@gmail.com> wrote:
>>
>>> any ideas on this?
>>>
>>> On Wed, Nov 4, 2015 at 2:32 AM, Sandeep <sa...@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 <pr...@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.
>>>>>
>>>>
>>>>
>>>
>>
>

Re: Test run failure

Posted by Sandeep <sa...@gmail.com>.
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 <pr...@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.
>

Re: Test run failure

Posted by Rajat Khandelwal <pr...@apache.org>.
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.