You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@asterixdb.apache.org by Ahmed Eldawy <as...@gmail.com> on 2018/02/07 19:07:35 UTC

Move of AsterixHyracksIntegrationUtil from production to test

Hi,

I see that recently the AsterixHyracksIntegrationUtil was moved from
production to test in the following commit.

>   [NO ISSUE] Move AsterixHyracksIntegrationUtil from production to test
>
>   Change-Id: Id603d0f1ac17b977356e628a89845d240c8aa8b7
>   Reviewed-on: https://asterix-gerrit.ics.uci.edu/2311
>   Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
>   Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
>   Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
>   Reviewed-by: Till Westmann <ti...@apache.org>


I couldn't find a discussion around this issue and I don't know why this
move was necessary. I used to run the *AsterixHyracksIntegrationUtil* for
testing and trying out AsterixDB and now I cannot. Running the following
command gives the error below.

> $ASTERIXDB/asterixdb/asterix-app$ *mvn exec:java*
> -Dexec.mainClass="org.apache.asterix.api.common.AsterixHyracksIntegrationUtil"



> java.lang.ClassNotFoundException:
> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:270)
>         at java.lang.Thread.run(Thread.java:745)


Although this is a less preferred way to me, I tried to run it from *IntelliJ
IDEA* but I got the following error.

> java.lang.IllegalStateException: java.lang.ClassNotFoundException:
> org.apache.asterix.runtime.evaluators.functions.records.FieldAccessByIndexDescriptor$_Gen
> at
> org.apache.asterix.runtime.functions.FunctionCollection.getGeneratedFunctionDescriptorFactory(FunctionCollection.java:750)
> at
> org.apache.asterix.runtime.functions.FunctionCollection.addGenerated(FunctionCollection.java:348)
> at
> org.apache.asterix.runtime.functions.FunctionCollection.createDefaultFunctionCollection(FunctionCollection.java:473)
> at
> org.apache.asterix.app.cc.CCExtensionManager.<init>(CCExtensionManager.java:101)
> at
> org.apache.asterix.hyracks.bootstrap.CCApplication.start(CCApplication.java:151)
> at
> org.apache.hyracks.control.cc.ClusterControllerService.startApplication(ClusterControllerService.java:236)
> at
> org.apache.hyracks.control.cc.ClusterControllerService.start(ClusterControllerService.java:222)
> at
> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.init(AsterixHyracksIntegrationUtil.java:144)
> at
> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.init(AsterixHyracksIntegrationUtil.java:177)
> at
> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.run(AsterixHyracksIntegrationUtil.java:333)
> at
> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.main(AsterixHyracksIntegrationUtil.java:102)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.asterix.runtime.evaluators.functions.records.FieldAccessByIndexDescriptor$_Gen
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at
> org.apache.asterix.runtime.functions.FunctionCollection.getGeneratedFunctionDescriptorFactory(FunctionCollection.java:746)
> ... 15 more



is there an alternative easy way to run *AsterixHyracksIntegrationUtil* or
a similar program?

-- 
Best regards,
Ahmed Eldawy

Re: Move of AsterixHyracksIntegrationUtil from production to test

Posted by Ahmed Eldawy <el...@ucr.edu>.
Thanks. Adding "-Dexec.classpathScope=test" solved the command line
problem. For IntelliJ, I deleted the project and recreated it to ensure it
uses the fresh classes.

On Wed, Feb 7, 2018 at 1:15 PM, Chen Luo <cl...@uci.edu> wrote:

> To run AsterixHyracksIntegrationUtil from maven, you may try to add the
> parameter "-Dexec.classpathScope=test".
>
> Best regards,
> Chen Luo
>
> On Wed, Feb 7, 2018 at 12:33 PM, Ian Maxon <im...@uci.edu> wrote:
>
> > It always belonged in test so it just got moved there. What you're
> > seeing in IntelliJ at least is probably just a stale run profile, try
> > going to the class itself and context-clicking in the window and
> > running it from there, that should create a run profile with the right
> > values.
> >
> > On Wed, Feb 7, 2018 at 11:07 AM, Ahmed Eldawy <as...@gmail.com>
> wrote:
> > > Hi,
> > >
> > > I see that recently the AsterixHyracksIntegrationUtil was moved from
> > > production to test in the following commit.
> > >
> > >>   [NO ISSUE] Move AsterixHyracksIntegrationUtil from production to
> test
> > >>
> > >>   Change-Id: Id603d0f1ac17b977356e628a89845d240c8aa8b7
> > >>   Reviewed-on: https://asterix-gerrit.ics.uci.edu/2311
> > >>   Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
> > >>   Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
> > >>   Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
> > >>   Reviewed-by: Till Westmann <ti...@apache.org>
> > >
> > >
> > > I couldn't find a discussion around this issue and I don't know why
> this
> > > move was necessary. I used to run the *AsterixHyracksIntegrationUtil*
> > for
> > > testing and trying out AsterixDB and now I cannot. Running the
> following
> > > command gives the error below.
> > >
> > >> $ASTERIXDB/asterixdb/asterix-app$ *mvn exec:java*
> > >> -Dexec.mainClass="org.apache.asterix.api.common.
> > AsterixHyracksIntegrationUtil"
> > >
> > >
> > >
> > >> java.lang.ClassNotFoundException:
> > >> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil
> > >>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> > >>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> > >>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> > >>         at org.codehaus.mojo.exec.ExecJavaMojo$1.run(
> > ExecJavaMojo.java:270)
> > >>         at java.lang.Thread.run(Thread.java:745)
> > >
> > >
> > > Although this is a less preferred way to me, I tried to run it from
> > *IntelliJ
> > > IDEA* but I got the following error.
> > >
> > >> java.lang.IllegalStateException: java.lang.ClassNotFoundException:
> > >> org.apache.asterix.runtime.evaluators.functions.records.
> > FieldAccessByIndexDescriptor$_Gen
> > >> at
> > >> org.apache.asterix.runtime.functions.FunctionCollection.
> > getGeneratedFunctionDescriptorFactory(FunctionCollection.java:750)
> > >> at
> > >> org.apache.asterix.runtime.functions.FunctionCollection.addGenerated(
> > FunctionCollection.java:348)
> > >> at
> > >> org.apache.asterix.runtime.functions.FunctionCollection.
> > createDefaultFunctionCollection(FunctionCollection.java:473)
> > >> at
> > >> org.apache.asterix.app.cc.CCExtensionManager.<init>(
> > CCExtensionManager.java:101)
> > >> at
> > >> org.apache.asterix.hyracks.bootstrap.CCApplication.start(
> > CCApplication.java:151)
> > >> at
> > >> org.apache.hyracks.control.cc.ClusterControllerService.
> > startApplication(ClusterControllerService.java:236)
> > >> at
> > >> org.apache.hyracks.control.cc.ClusterControllerService.start(
> > ClusterControllerService.java:222)
> > >> at
> > >> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.init(
> > AsterixHyracksIntegrationUtil.java:144)
> > >> at
> > >> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.init(
> > AsterixHyracksIntegrationUtil.java:177)
> > >> at
> > >> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.run(
> > AsterixHyracksIntegrationUtil.java:333)
> > >> at
> > >> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.main(
> > AsterixHyracksIntegrationUtil.java:102)
> > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >> at
> > >> sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:62)
> > >> at
> > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:43)
> > >> at java.lang.reflect.Method.invoke(Method.java:498)
> > >> at com.intellij.rt.execution.application.AppMain.main(
> AppMain.java:147)
> > >> Caused by: java.lang.ClassNotFoundException:
> > >> org.apache.asterix.runtime.evaluators.functions.records.
> > FieldAccessByIndexDescriptor$_Gen
> > >> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> > >> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> > >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> > >> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> > >> at
> > >> org.apache.asterix.runtime.functions.FunctionCollection.
> > getGeneratedFunctionDescriptorFactory(FunctionCollection.java:746)
> > >> ... 15 more
> > >
> > >
> > >
> > > is there an alternative easy way to run *
> AsterixHyracksIntegrationUtil*
> > or
> > > a similar program?
> > >
> > > --
> > > Best regards,
> > > Ahmed Eldawy
> >
>



-- 

Ahmed Eldawy
Assistant Professor
http://www.cs.ucr.edu/~eldawy
Tel: +1 (951) 827-5654

Re: Move of AsterixHyracksIntegrationUtil from production to test

Posted by Chen Luo <cl...@uci.edu>.
To run AsterixHyracksIntegrationUtil from maven, you may try to add the
parameter "-Dexec.classpathScope=test".

Best regards,
Chen Luo

On Wed, Feb 7, 2018 at 12:33 PM, Ian Maxon <im...@uci.edu> wrote:

> It always belonged in test so it just got moved there. What you're
> seeing in IntelliJ at least is probably just a stale run profile, try
> going to the class itself and context-clicking in the window and
> running it from there, that should create a run profile with the right
> values.
>
> On Wed, Feb 7, 2018 at 11:07 AM, Ahmed Eldawy <as...@gmail.com> wrote:
> > Hi,
> >
> > I see that recently the AsterixHyracksIntegrationUtil was moved from
> > production to test in the following commit.
> >
> >>   [NO ISSUE] Move AsterixHyracksIntegrationUtil from production to test
> >>
> >>   Change-Id: Id603d0f1ac17b977356e628a89845d240c8aa8b7
> >>   Reviewed-on: https://asterix-gerrit.ics.uci.edu/2311
> >>   Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
> >>   Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
> >>   Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
> >>   Reviewed-by: Till Westmann <ti...@apache.org>
> >
> >
> > I couldn't find a discussion around this issue and I don't know why this
> > move was necessary. I used to run the *AsterixHyracksIntegrationUtil*
> for
> > testing and trying out AsterixDB and now I cannot. Running the following
> > command gives the error below.
> >
> >> $ASTERIXDB/asterixdb/asterix-app$ *mvn exec:java*
> >> -Dexec.mainClass="org.apache.asterix.api.common.
> AsterixHyracksIntegrationUtil"
> >
> >
> >
> >> java.lang.ClassNotFoundException:
> >> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil
> >>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> >>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >>         at org.codehaus.mojo.exec.ExecJavaMojo$1.run(
> ExecJavaMojo.java:270)
> >>         at java.lang.Thread.run(Thread.java:745)
> >
> >
> > Although this is a less preferred way to me, I tried to run it from
> *IntelliJ
> > IDEA* but I got the following error.
> >
> >> java.lang.IllegalStateException: java.lang.ClassNotFoundException:
> >> org.apache.asterix.runtime.evaluators.functions.records.
> FieldAccessByIndexDescriptor$_Gen
> >> at
> >> org.apache.asterix.runtime.functions.FunctionCollection.
> getGeneratedFunctionDescriptorFactory(FunctionCollection.java:750)
> >> at
> >> org.apache.asterix.runtime.functions.FunctionCollection.addGenerated(
> FunctionCollection.java:348)
> >> at
> >> org.apache.asterix.runtime.functions.FunctionCollection.
> createDefaultFunctionCollection(FunctionCollection.java:473)
> >> at
> >> org.apache.asterix.app.cc.CCExtensionManager.<init>(
> CCExtensionManager.java:101)
> >> at
> >> org.apache.asterix.hyracks.bootstrap.CCApplication.start(
> CCApplication.java:151)
> >> at
> >> org.apache.hyracks.control.cc.ClusterControllerService.
> startApplication(ClusterControllerService.java:236)
> >> at
> >> org.apache.hyracks.control.cc.ClusterControllerService.start(
> ClusterControllerService.java:222)
> >> at
> >> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.init(
> AsterixHyracksIntegrationUtil.java:144)
> >> at
> >> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.init(
> AsterixHyracksIntegrationUtil.java:177)
> >> at
> >> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.run(
> AsterixHyracksIntegrationUtil.java:333)
> >> at
> >> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.main(
> AsterixHyracksIntegrationUtil.java:102)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> >> at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> >> at java.lang.reflect.Method.invoke(Method.java:498)
> >> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
> >> Caused by: java.lang.ClassNotFoundException:
> >> org.apache.asterix.runtime.evaluators.functions.records.
> FieldAccessByIndexDescriptor$_Gen
> >> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >> at
> >> org.apache.asterix.runtime.functions.FunctionCollection.
> getGeneratedFunctionDescriptorFactory(FunctionCollection.java:746)
> >> ... 15 more
> >
> >
> >
> > is there an alternative easy way to run *AsterixHyracksIntegrationUtil*
> or
> > a similar program?
> >
> > --
> > Best regards,
> > Ahmed Eldawy
>

Re: Move of AsterixHyracksIntegrationUtil from production to test

Posted by Ian Maxon <im...@uci.edu>.
It always belonged in test so it just got moved there. What you're
seeing in IntelliJ at least is probably just a stale run profile, try
going to the class itself and context-clicking in the window and
running it from there, that should create a run profile with the right
values.

On Wed, Feb 7, 2018 at 11:07 AM, Ahmed Eldawy <as...@gmail.com> wrote:
> Hi,
>
> I see that recently the AsterixHyracksIntegrationUtil was moved from
> production to test in the following commit.
>
>>   [NO ISSUE] Move AsterixHyracksIntegrationUtil from production to test
>>
>>   Change-Id: Id603d0f1ac17b977356e628a89845d240c8aa8b7
>>   Reviewed-on: https://asterix-gerrit.ics.uci.edu/2311
>>   Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
>>   Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
>>   Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
>>   Reviewed-by: Till Westmann <ti...@apache.org>
>
>
> I couldn't find a discussion around this issue and I don't know why this
> move was necessary. I used to run the *AsterixHyracksIntegrationUtil* for
> testing and trying out AsterixDB and now I cannot. Running the following
> command gives the error below.
>
>> $ASTERIXDB/asterixdb/asterix-app$ *mvn exec:java*
>> -Dexec.mainClass="org.apache.asterix.api.common.AsterixHyracksIntegrationUtil"
>
>
>
>> java.lang.ClassNotFoundException:
>> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>         at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:270)
>>         at java.lang.Thread.run(Thread.java:745)
>
>
> Although this is a less preferred way to me, I tried to run it from *IntelliJ
> IDEA* but I got the following error.
>
>> java.lang.IllegalStateException: java.lang.ClassNotFoundException:
>> org.apache.asterix.runtime.evaluators.functions.records.FieldAccessByIndexDescriptor$_Gen
>> at
>> org.apache.asterix.runtime.functions.FunctionCollection.getGeneratedFunctionDescriptorFactory(FunctionCollection.java:750)
>> at
>> org.apache.asterix.runtime.functions.FunctionCollection.addGenerated(FunctionCollection.java:348)
>> at
>> org.apache.asterix.runtime.functions.FunctionCollection.createDefaultFunctionCollection(FunctionCollection.java:473)
>> at
>> org.apache.asterix.app.cc.CCExtensionManager.<init>(CCExtensionManager.java:101)
>> at
>> org.apache.asterix.hyracks.bootstrap.CCApplication.start(CCApplication.java:151)
>> at
>> org.apache.hyracks.control.cc.ClusterControllerService.startApplication(ClusterControllerService.java:236)
>> at
>> org.apache.hyracks.control.cc.ClusterControllerService.start(ClusterControllerService.java:222)
>> at
>> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.init(AsterixHyracksIntegrationUtil.java:144)
>> at
>> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.init(AsterixHyracksIntegrationUtil.java:177)
>> at
>> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.run(AsterixHyracksIntegrationUtil.java:333)
>> at
>> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.main(AsterixHyracksIntegrationUtil.java:102)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.asterix.runtime.evaluators.functions.records.FieldAccessByIndexDescriptor$_Gen
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> at
>> org.apache.asterix.runtime.functions.FunctionCollection.getGeneratedFunctionDescriptorFactory(FunctionCollection.java:746)
>> ... 15 more
>
>
>
> is there an alternative easy way to run *AsterixHyracksIntegrationUtil* or
> a similar program?
>
> --
> Best regards,
> Ahmed Eldawy