oodt-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler Palsulich <tpalsul...@gmail.com>
Subject Re: OODT- Error while executing filemgr-client in OODT File manager component
Date Sun, 02 Nov 2014 17:51:36 GMT
Following up on this thread, is there a reason the RADiX filemgr and
filemgr-client are substantially different than the trunk's?

Tyler

On Mon, Oct 27, 2014 at 3:43 PM, Vishal Hemnani <hemnani@usc.edu> wrote:

> Also, I agree with Tyler and received an IndexOutOfBounds exception in
> filemgr command after I set $_RUNJAVA.
>
> ./filemgr: 99: [: -eq: unexpected operator
> pushkar@ubuntu:/usr/local/oodt/filemgr/bin$ Exception in thread "main"
> java.lang.ArrayIndexOutOfBoundsException: 1
> at
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.main(XmlRpcFileManager.java:996)
>
> This is from version 0.7, radix installation.
>
> Thanks & Best,
> Vishal Hemnani
> Graduate Student, MS Computer Science
> University of Southern California, Los Angeles
>
> On Mon, Oct 27, 2014 at 11:47 AM, Vishal Hemnani <hemnani@usc.edu> wrote:
>
>> Hi Tyler,
>>
>> Apologize for delayed response, I wasn't copied in those mails.
>>
>> I tried setting $_RUNJAVA and it works fine now.
>>
>> [ -z "$_RUNJAVA" ] && _RUNJAVA="$JAVA_HOME/jre/bin/java"
>>
>> ^worked!
>>
>> Thank you so much Tyler and Chris!
>> Appreciate all your help.
>>
>> Thanks & Best,
>> Vishal Hemnani
>> Graduate Student, MS Computer Science
>> University of Southern California, Los Angeles
>>
>> On Mon, Oct 27, 2014 at 10:37 AM, Jarin Nitin Shah <jarinnis@usc.edu>
>> wrote:
>>
>>>
>>> ---------- Forwarded message ----------
>>> From: Tyler Palsulich <tpalsulich@gmail.com>
>>> Date: Sun, Oct 26, 2014 at 7:31 PM
>>> Subject: Re: OODT- Error while executing filemgr-client in OODT File
>>> manager component
>>> To: dev <dev@oodt.apache.org>
>>> Cc: Christian Alan Mattmann <mattmann@usc.edu>, Preethi Ramesh <
>>> pramesh@usc.edu>, Gouthami Kondakindi <kondakin@usc.edu>, "apraj@usc.edu"
>>> <apraj@usc.edu>, Jarin Nitin Shah <jarinnis@usc.edu>
>>>
>>>
>>> Sorry for the spammy emails. But, I tried this with trunk off of the
>>> hunch that the archetype and trunk are different, and it worked!
>>>
>>> Vishal, can you try the following?
>>> -----------------------------
>>> svn co https://svn.apache.org/repos/asf/oodt/trunk/ oodt.trunk
>>> cd oodt.trunk
>>> mvn package
>>> mkdir ../deploy
>>> tar -xzvf filemgr/target/cas-filemgr-0.8-SNAPSHOT-dist.tar.gz -C
>>> ../deploy
>>> cd ../deploy/cas-filemgr-0.8-SNAPSHOT/bin
>>> ./filemgr start
>>> ./filemgr-client
>>> -----------------------------
>>>
>>> Tyler
>>>
>>> On Sun, Oct 26, 2014 at 10:21 PM, Tyler Palsulich <tpalsulich@gmail.com>
>>> wrote:
>>>
>>>> I'm looking into this more. The problem seems to be that the archetype
>>>> isn't using the same source as trunk. Take a look at
>>>>
>>>>
>>>> https://github.com/apache/oodt/blob/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/filemgr/src/main/resources/bin/filemgr-client
>>>>
>>>> The archetype filemgr-client. Compare that to
>>>>
>>>>
>>>> https://github.com/apache/oodt/blob/trunk/filemgr/src/main/bin/filemgr-client
>>>>
>>>> the trunk filemgr-client.
>>>>
>>>> Shouldn't these two be the same? Is there a way to keep the archetype
>>>> up to date with trunk/the archetype version?
>>>>
>>>> Tyler
>>>>
>>>> On Sun, Oct 26, 2014 at 10:07 PM, Tyler Palsulich <tpalsulich@gmail.com
>>>> > wrote:
>>>>
>>>>> I just tried the same steps with some trouble. In particular, here are
>>>>> the commands I ran:
>>>>>
>>>>>     curl -s
>>>>> http://svn.apache.org/repos/asf/oodt/trunk/mvn/archetypes/radix/src/main/resources/bin/radix
>>>>> | bash
>>>>>     cd oodt
>>>>>     mvn package
>>>>>     mkdir ../deploy
>>>>>     tar -xzvf filemgr/target/oodt-filemgr-0.1-bin.tar.gz -C ../deploy
>>>>>     cd ../deploy/filemgr/bin
>>>>>     ./filemgr start
>>>>>
>>>>> ./filemgr: line 95: [: -eq: unary operator expected
>>>>> ./filemgr: line 83: : command not found
>>>>>
>>>>> Both problems are caused by undefined variables. Can fix line 95 by
>>>>> switching it to be [[ ... ]] and switching the shebang to /bin/bash.
But,
>>>>> that doesn't fix the underlying issue that $have_tty isn't defined. From
>>>>> googling, it looks to be an artifact from [0]. Thoughts?
>>>>>
>>>>> Line 83 is caused by $_RUNJAVA not being defined. That can be fixed
>>>>> by, well, defining it. ;) Add this right below the definition of OODT_HOME:
>>>>>     [ -z "$_RUNJAVA" ] && _RUNJAVA="$JAVA_HOME/bin/java"
>>>>>
>>>>> After applying both of those fixes, I get the following error:
>>>>>     Exception in thread "main"
>>>>> java.lang.ArrayIndexOutOfBoundsException: 1
>>>>> at
>>>>> org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.main(XmlRpcFileManager.java:996)
>>>>>
>>>>> But, that's another thread. I haven't looked into it yet.
>>>>>
>>>>> So, I tried just running filemgr-client and got the same error as
>>>>> Vishal... Looking at line 71, it's the same problem as with filemgr.
>>>>> $_RUNJAVA$ isn't defined, so we get a command not found. I added the
same
>>>>> _RUNJAVA definition from above... and it worked!
>>>>>
>>>>> Can you try adding that line to filemgr-client, Vashal? Did you have
>>>>> any issues running `filemgr start`?
>>>>>
>>>>> Tyler
>>>>>
>>>>> [0] - https://svn.apache.org/repos/asf/tomcat/trunk/bin/catalina.sh
>>>>>
>>>>> On Sun, Oct 26, 2014 at 7:07 PM, Mattmann, Chris A (3980) <
>>>>> chris.a.mattmann@jpl.nasa.gov> wrote:
>>>>>
>>>>>> Is your java_home env variable set?
>>>>>>
>>>>>> Sent from my iPhone
>>>>>>
>>>>>> > On Oct 26, 2014, at 12:26 PM, "Vishal Hemnani" <hemnani@usc.edu>
>>>>>> wrote:
>>>>>> >
>>>>>> > Hello,
>>>>>> >
>>>>>> > We installed OODT using Radix and followed steps given on wiki
(
>>>>>> >
>>>>>> https://cwiki.apache.org/confluence/display/OODT/OODT+Filemgr+User+Guide
>>>>>> )
>>>>>> >
>>>>>> > But while executing filemgr-client, it fails to execute due
to a
>>>>>> > "Permission denied" error on line 71. The snippet where it fails
is-
>>>>>> >
>>>>>> > "$_RUNJAVA" $JAVA_OPTS $OODT_OPTS \
>>>>>> -Djava.ext.dirs="$FILEMGR_HOME"/lib \
>>>>>> >
>>>>>> -Dorg.apache.oodt.cas.filemgr.properties="$FILEMGR_HOME"/etc/filemgr.properties
>>>>>> > \
>>>>>> -Djava.util.logging.config.file="$FILEMGR_HOME"/etc/logging.properties
\
>>>>>> >
>>>>>> -Dorg.apache.oodt.cas.cli.action.spring.config=file:"$FILEMGR_HOME"/policy/cmd-line-actions.xml
>>>>>> > \
>>>>>> >
>>>>>> -Dorg.apache.oodt.cas.cli.option.spring.config=file:"$FILEMGR_HOME"/policy/cmd-line-options.xml
>>>>>> > \ org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient
"$@"
>>>>>> >
>>>>>> > We tried chmod on this script but didn't help.
>>>>>> > Also, tried setting JAVA_HOME and other env variables, but that
>>>>>> didn't help
>>>>>> > either.
>>>>>> >
>>>>>> > Appreciate if someone could help troubleshoot this issue.
>>>>>> >
>>>>>> > *Environment details-*
>>>>>> > Ubuntu 14.04
>>>>>> > 64-bit
>>>>>> > Radix installation
>>>>>> >
>>>>>> > Thanks & Best,
>>>>>> > Vishal Hemnani
>>>>>> > Graduate Student, MS Computer Science
>>>>>> > University of Southern California, Los Angeles
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> Jarin Nitin Shah
>>> Graduate Student at USC,
>>> MS in Computer Science,
>>> jarinnis@usc.edu
>>>
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message