Re: Deploying SOLR (was:Re: Fail to ingest a test file to file manager on SuSe Linux)

2016-02-09 Thread Tom Barber
Okay cool. I'm not familiar with that part of the code base, but I'll prod
around and see what I can come up with.

Tom

On Wed, Feb 10, 2016 at 12:11 AM, Shi, Wei  wrote:

> Hi Tom,
> The installation went very well. I tested ingestion and deletion, both
> worked as expected.
>
> The only thing I noticed is ³Received Time² displayed as ³UNKNOWN² after
> the file is ingested.
>
> Thanks,
>
> Wei
>
> On 2/9/16, 6:08 PM, "Tom Barber"  wrote:
>
> >Okay Wei, Jordan
> >
> >Can you guys test this for me whilst I pass out:
> >
> >mvn -DarchetypeGroupId=org.apache.oodt
> >-DarchetypeArtifactId=radix-archetype -DarchetypeVersion=0.12-SNAPSHOT
> >-Doodt=0.12-SNAPSHOT -DgroupId=com.mycompany -DartifactId=oodt
> >-Dversion=0.1 -DarchetypeRepository=
> >https://repository.apache.org/content/groups/snapshots/
> archetype:generate
> >-Pfm-solr-catalog
> >
> >mv oodt oodt-src; cd oodt-src; mvn clean package -Pfm-solr-catalog
> >
> >mkdir ../oodt; tar -xvf
> >distribution/target/oodt-distribution-0.1-bin.tar.gz -C ../oodt
> >
> >cd ../oodt; ./bin/oodt start
> >
> >
> >Its 0.12 RADIX with the start script patched so SOLR starts.
> >
> >Notice the -P profile flag for solr, it should deploy your solr config
> >with
> >no extra work.
> >
> >Let me know how it goes, I've not tested ingestion but I have verified
> >that
> >solr and the filemgr are running.
> >
> >Tom
> >
> >On Tue, Feb 9, 2016 at 9:17 PM, Tom Barber 
> >wrote:
> >
> >> You don't need vagrant if you don't want it and you can use maven 3 BTW
> >> On 9 Feb 2016 22:13, "Tom Barber"  wrote:
> >>
> >>> Blimey!
> >>>
> >>> Okay you guys are mostly working.  I'm gonna fix the solr maven profile
> >>> before I cut 0.12 because it mostly works and it's a lot easier than
> >>>that
> >>> solr tutorial! :)
> >>> On 9 Feb 2016 22:06, "Shi, Wei"  wrote:
> >>>
>  Here is a list I compiled:
> 
>  1.  Download and Install VirtualBox 5.0
>  2.  Install Vagrant on Windows 7. It will be installed in
> VirtualBox
> 
> 
> 
> http://www.seascapewebdesign.com/blog/part-1-getting-started-vagrant-wi
> ndows-7-and-8
>  3.  Install Java
> 
> 
> 
> https://www.digitalocean.com/community/tutorials/how-to-install-java-on
> -ubuntu-with-apt-get
>  4.  Install Maven 2.2.1 (download from maven site cause the blog
>  provided link is not working)
> 
> 
> 
> http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.ta
> r.gz
> 
> 
> 
> https://saeedkhattak.wordpress.com/2013/03/05/install-maven-in-ubuntu-1
> 2-04/
>  5.  Install OODT
> 
> https://cwiki.apache.org/confluence/display/OODT/RADiX+Powered+By+OODT
>  6.  You may need to open port 8080 to allow guest to access
> 
> 
> 
> http://serverfault.com/questions/248568/how-to-open-a-8080-port-for-an-
> application-with-iptables
>  7.  Recompile filemgr in 0.12 and copy over, Note: logs folder is
>  missing. Create logs folder under filemgr
>  8.  File Manger User Guide:
> 
> 
> https://cwiki.apache.org/confluence/display/OODT/OODT+Filemgr+User+Guid
> e
>  9.  Solr
> 
> 
> 
> https://cwiki.apache.org/confluence/display/OODT/Solr+File+Manager+Quic
> k+Start+Guide
>  10. Curator Setup
> 
> 
> 
> http://svn.apache.org/repos/asf/oodt/site/components/maven/curator/user
> /basic.html
> 
> 
> 
>  -Original Message-
>  From: Tom Barber [mailto:tom.bar...@meteorite.bi]
>  Sent: Tuesday, February 09, 2016 3:28 PM
>  To: dev@oodt.apache.org
>  Subject: Deploying SOLR (was:Re: Fail to ingest a test file to file
>  manager on SuSe Linux)
> 
>  Out of curiosity, Wei and Jordan if he checks this thread, what
>  instructions/hacks are you using to deploy OODT & SOLR?
> 
>  I know how I do it, I wondered how others do it, ie, what docs do you
>  follow?
> 
>  Cheers
> 
>  Tom
>  **
>  Electronic Mail is not secure, may not be read every day, and should
> not
>  be used for urgent or sensitive issues
> 
> >>>
>
> **
> Electronic Mail is not secure, may not be read every day, and should not
> be used for urgent or sensitive issues
>
>


Re: Deploying SOLR (was:Re: Fail to ingest a test file to file manager on SuSe Linux)

2016-02-09 Thread Shi, Wei
Hi Tom,
The installation went very well. I tested ingestion and deletion, both
worked as expected.

The only thing I noticed is ³Received Time² displayed as ³UNKNOWN² after
the file is ingested.

Thanks,

Wei

On 2/9/16, 6:08 PM, "Tom Barber"  wrote:

>Okay Wei, Jordan
>
>Can you guys test this for me whilst I pass out:
>
>mvn -DarchetypeGroupId=org.apache.oodt
>-DarchetypeArtifactId=radix-archetype -DarchetypeVersion=0.12-SNAPSHOT
>-Doodt=0.12-SNAPSHOT -DgroupId=com.mycompany -DartifactId=oodt
>-Dversion=0.1 -DarchetypeRepository=
>https://repository.apache.org/content/groups/snapshots/ archetype:generate
>-Pfm-solr-catalog
>
>mv oodt oodt-src; cd oodt-src; mvn clean package -Pfm-solr-catalog
>
>mkdir ../oodt; tar -xvf
>distribution/target/oodt-distribution-0.1-bin.tar.gz -C ../oodt
>
>cd ../oodt; ./bin/oodt start
>
>
>Its 0.12 RADIX with the start script patched so SOLR starts.
>
>Notice the -P profile flag for solr, it should deploy your solr config
>with
>no extra work.
>
>Let me know how it goes, I've not tested ingestion but I have verified
>that
>solr and the filemgr are running.
>
>Tom
>
>On Tue, Feb 9, 2016 at 9:17 PM, Tom Barber 
>wrote:
>
>> You don't need vagrant if you don't want it and you can use maven 3 BTW
>> On 9 Feb 2016 22:13, "Tom Barber"  wrote:
>>
>>> Blimey!
>>>
>>> Okay you guys are mostly working.  I'm gonna fix the solr maven profile
>>> before I cut 0.12 because it mostly works and it's a lot easier than
>>>that
>>> solr tutorial! :)
>>> On 9 Feb 2016 22:06, "Shi, Wei"  wrote:
>>>
 Here is a list I compiled:

 1.  Download and Install VirtualBox 5.0
 2.  Install Vagrant on Windows 7. It will be installed in
VirtualBox

 
http://www.seascapewebdesign.com/blog/part-1-getting-started-vagrant-wi
ndows-7-and-8
 3.  Install Java

 
https://www.digitalocean.com/community/tutorials/how-to-install-java-on
-ubuntu-with-apt-get
 4.  Install Maven 2.2.1 (download from maven site cause the blog
 provided link is not working)

 
http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.ta
r.gz

 
https://saeedkhattak.wordpress.com/2013/03/05/install-maven-in-ubuntu-1
2-04/
 5.  Install OODT
 https://cwiki.apache.org/confluence/display/OODT/RADiX+Powered+By+OODT
 6.  You may need to open port 8080 to allow guest to access

 
http://serverfault.com/questions/248568/how-to-open-a-8080-port-for-an-
application-with-iptables
 7.  Recompile filemgr in 0.12 and copy over, Note: logs folder is
 missing. Create logs folder under filemgr
 8.  File Manger User Guide:
 
https://cwiki.apache.org/confluence/display/OODT/OODT+Filemgr+User+Guid
e
 9.  Solr

 
https://cwiki.apache.org/confluence/display/OODT/Solr+File+Manager+Quic
k+Start+Guide
 10. Curator Setup

 
http://svn.apache.org/repos/asf/oodt/site/components/maven/curator/user
/basic.html



 -Original Message-
 From: Tom Barber [mailto:tom.bar...@meteorite.bi]
 Sent: Tuesday, February 09, 2016 3:28 PM
 To: dev@oodt.apache.org
 Subject: Deploying SOLR (was:Re: Fail to ingest a test file to file
 manager on SuSe Linux)

 Out of curiosity, Wei and Jordan if he checks this thread, what
 instructions/hacks are you using to deploy OODT & SOLR?

 I know how I do it, I wondered how others do it, ie, what docs do you
 follow?

 Cheers

 Tom
 **
 Electronic Mail is not secure, may not be read every day, and should
not
 be used for urgent or sensitive issues

>>>

**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues 



Re: Deploying SOLR (was:Re: Fail to ingest a test file to file manager on SuSe Linux)

2016-02-09 Thread Tom Barber
Okay Wei, Jordan

Can you guys test this for me whilst I pass out:

mvn -DarchetypeGroupId=org.apache.oodt
-DarchetypeArtifactId=radix-archetype -DarchetypeVersion=0.12-SNAPSHOT
-Doodt=0.12-SNAPSHOT -DgroupId=com.mycompany -DartifactId=oodt
-Dversion=0.1 -DarchetypeRepository=
https://repository.apache.org/content/groups/snapshots/ archetype:generate
-Pfm-solr-catalog

mv oodt oodt-src; cd oodt-src; mvn clean package -Pfm-solr-catalog

mkdir ../oodt; tar -xvf
distribution/target/oodt-distribution-0.1-bin.tar.gz -C ../oodt

cd ../oodt; ./bin/oodt start


Its 0.12 RADIX with the start script patched so SOLR starts.

Notice the -P profile flag for solr, it should deploy your solr config with
no extra work.

Let me know how it goes, I've not tested ingestion but I have verified that
solr and the filemgr are running.

Tom

On Tue, Feb 9, 2016 at 9:17 PM, Tom Barber  wrote:

> You don't need vagrant if you don't want it and you can use maven 3 BTW
> On 9 Feb 2016 22:13, "Tom Barber"  wrote:
>
>> Blimey!
>>
>> Okay you guys are mostly working.  I'm gonna fix the solr maven profile
>> before I cut 0.12 because it mostly works and it's a lot easier than that
>> solr tutorial! :)
>> On 9 Feb 2016 22:06, "Shi, Wei"  wrote:
>>
>>> Here is a list I compiled:
>>>
>>> 1.  Download and Install VirtualBox 5.0
>>> 2.  Install Vagrant on Windows 7. It will be installed in VirtualBox
>>>
>>> http://www.seascapewebdesign.com/blog/part-1-getting-started-vagrant-windows-7-and-8
>>> 3.  Install Java
>>>
>>> https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
>>> 4.  Install Maven 2.2.1 (download from maven site cause the blog
>>> provided link is not working)
>>>
>>> http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz
>>>
>>> https://saeedkhattak.wordpress.com/2013/03/05/install-maven-in-ubuntu-12-04/
>>> 5.  Install OODT
>>> https://cwiki.apache.org/confluence/display/OODT/RADiX+Powered+By+OODT
>>> 6.  You may need to open port 8080 to allow guest to access
>>>
>>> http://serverfault.com/questions/248568/how-to-open-a-8080-port-for-an-application-with-iptables
>>> 7.  Recompile filemgr in 0.12 and copy over, Note: logs folder is
>>> missing. Create logs folder under filemgr
>>> 8.  File Manger User Guide:
>>> https://cwiki.apache.org/confluence/display/OODT/OODT+Filemgr+User+Guide
>>> 9.  Solr
>>>
>>> https://cwiki.apache.org/confluence/display/OODT/Solr+File+Manager+Quick+Start+Guide
>>> 10. Curator Setup
>>>
>>> http://svn.apache.org/repos/asf/oodt/site/components/maven/curator/user/basic.html
>>>
>>>
>>>
>>> -Original Message-
>>> From: Tom Barber [mailto:tom.bar...@meteorite.bi]
>>> Sent: Tuesday, February 09, 2016 3:28 PM
>>> To: dev@oodt.apache.org
>>> Subject: Deploying SOLR (was:Re: Fail to ingest a test file to file
>>> manager on SuSe Linux)
>>>
>>> Out of curiosity, Wei and Jordan if he checks this thread, what
>>> instructions/hacks are you using to deploy OODT & SOLR?
>>>
>>> I know how I do it, I wondered how others do it, ie, what docs do you
>>> follow?
>>>
>>> Cheers
>>>
>>> Tom
>>> **
>>> Electronic Mail is not secure, may not be read every day, and should not
>>> be used for urgent or sensitive issues
>>>
>>


Jenkins build is back to stable : oodt-coverage #69

2016-02-09 Thread Apache Jenkins Server
See 



Jenkins build became unstable: oodt-trunk #2096

2016-02-09 Thread Apache Jenkins Server
See 



Jenkins build became unstable: oodt-trunk » CAS Protocol IMAPS Implementation #2096

2016-02-09 Thread Apache Jenkins Server
See 




RE: Deploying SOLR (was:Re: Fail to ingest a test file to file manager on SuSe Linux)

2016-02-09 Thread Tom Barber
You don't need vagrant if you don't want it and you can use maven 3 BTW
On 9 Feb 2016 22:13, "Tom Barber"  wrote:

> Blimey!
>
> Okay you guys are mostly working.  I'm gonna fix the solr maven profile
> before I cut 0.12 because it mostly works and it's a lot easier than that
> solr tutorial! :)
> On 9 Feb 2016 22:06, "Shi, Wei"  wrote:
>
>> Here is a list I compiled:
>>
>> 1.  Download and Install VirtualBox 5.0
>> 2.  Install Vagrant on Windows 7. It will be installed in VirtualBox
>>
>> http://www.seascapewebdesign.com/blog/part-1-getting-started-vagrant-windows-7-and-8
>> 3.  Install Java
>>
>> https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
>> 4.  Install Maven 2.2.1 (download from maven site cause the blog
>> provided link is not working)
>>
>> http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz
>>
>> https://saeedkhattak.wordpress.com/2013/03/05/install-maven-in-ubuntu-12-04/
>> 5.  Install OODT
>> https://cwiki.apache.org/confluence/display/OODT/RADiX+Powered+By+OODT
>> 6.  You may need to open port 8080 to allow guest to access
>>
>> http://serverfault.com/questions/248568/how-to-open-a-8080-port-for-an-application-with-iptables
>> 7.  Recompile filemgr in 0.12 and copy over, Note: logs folder is
>> missing. Create logs folder under filemgr
>> 8.  File Manger User Guide:
>> https://cwiki.apache.org/confluence/display/OODT/OODT+Filemgr+User+Guide
>> 9.  Solr
>>
>> https://cwiki.apache.org/confluence/display/OODT/Solr+File+Manager+Quick+Start+Guide
>> 10. Curator Setup
>>
>> http://svn.apache.org/repos/asf/oodt/site/components/maven/curator/user/basic.html
>>
>>
>>
>> -Original Message-
>> From: Tom Barber [mailto:tom.bar...@meteorite.bi]
>> Sent: Tuesday, February 09, 2016 3:28 PM
>> To: dev@oodt.apache.org
>> Subject: Deploying SOLR (was:Re: Fail to ingest a test file to file
>> manager on SuSe Linux)
>>
>> Out of curiosity, Wei and Jordan if he checks this thread, what
>> instructions/hacks are you using to deploy OODT & SOLR?
>>
>> I know how I do it, I wondered how others do it, ie, what docs do you
>> follow?
>>
>> Cheers
>>
>> Tom
>> **
>> Electronic Mail is not secure, may not be read every day, and should not
>> be used for urgent or sensitive issues
>>
>


RE: Deploying SOLR (was:Re: Fail to ingest a test file to file manager on SuSe Linux)

2016-02-09 Thread Tom Barber
Blimey!

Okay you guys are mostly working.  I'm gonna fix the solr maven profile
before I cut 0.12 because it mostly works and it's a lot easier than that
solr tutorial! :)
On 9 Feb 2016 22:06, "Shi, Wei"  wrote:

> Here is a list I compiled:
>
> 1.  Download and Install VirtualBox 5.0
> 2.  Install Vagrant on Windows 7. It will be installed in VirtualBox
>
> http://www.seascapewebdesign.com/blog/part-1-getting-started-vagrant-windows-7-and-8
> 3.  Install Java
>
> https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
> 4.  Install Maven 2.2.1 (download from maven site cause the blog
> provided link is not working)
> http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz
>
> https://saeedkhattak.wordpress.com/2013/03/05/install-maven-in-ubuntu-12-04/
> 5.  Install OODT
> https://cwiki.apache.org/confluence/display/OODT/RADiX+Powered+By+OODT
> 6.  You may need to open port 8080 to allow guest to access
>
> http://serverfault.com/questions/248568/how-to-open-a-8080-port-for-an-application-with-iptables
> 7.  Recompile filemgr in 0.12 and copy over, Note: logs folder is
> missing. Create logs folder under filemgr
> 8.  File Manger User Guide:
> https://cwiki.apache.org/confluence/display/OODT/OODT+Filemgr+User+Guide
> 9.  Solr
>
> https://cwiki.apache.org/confluence/display/OODT/Solr+File+Manager+Quick+Start+Guide
> 10. Curator Setup
>
> http://svn.apache.org/repos/asf/oodt/site/components/maven/curator/user/basic.html
>
>
>
> -Original Message-
> From: Tom Barber [mailto:tom.bar...@meteorite.bi]
> Sent: Tuesday, February 09, 2016 3:28 PM
> To: dev@oodt.apache.org
> Subject: Deploying SOLR (was:Re: Fail to ingest a test file to file
> manager on SuSe Linux)
>
> Out of curiosity, Wei and Jordan if he checks this thread, what
> instructions/hacks are you using to deploy OODT & SOLR?
>
> I know how I do it, I wondered how others do it, ie, what docs do you
> follow?
>
> Cheers
>
> Tom
> **
> Electronic Mail is not secure, may not be read every day, and should not
> be used for urgent or sensitive issues
>


RE: Deploying SOLR (was:Re: Fail to ingest a test file to file manager on SuSe Linux)

2016-02-09 Thread Shi, Wei
Here is a list I compiled:

1.  Download and Install VirtualBox 5.0
2.  Install Vagrant on Windows 7. It will be installed in VirtualBox
http://www.seascapewebdesign.com/blog/part-1-getting-started-vagrant-windows-7-and-8
3.  Install Java
https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
4.  Install Maven 2.2.1 (download from maven site cause the blog provided 
link is not working)
http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz
https://saeedkhattak.wordpress.com/2013/03/05/install-maven-in-ubuntu-12-04/
5.  Install OODT
https://cwiki.apache.org/confluence/display/OODT/RADiX+Powered+By+OODT
6.  You may need to open port 8080 to allow guest to access
http://serverfault.com/questions/248568/how-to-open-a-8080-port-for-an-application-with-iptables
7.  Recompile filemgr in 0.12 and copy over, Note: logs folder is missing. 
Create logs folder under filemgr
8.  File Manger User Guide:  
https://cwiki.apache.org/confluence/display/OODT/OODT+Filemgr+User+Guide
9.  Solr
https://cwiki.apache.org/confluence/display/OODT/Solr+File+Manager+Quick+Start+Guide
10. Curator Setup
http://svn.apache.org/repos/asf/oodt/site/components/maven/curator/user/basic.html



-Original Message-
From: Tom Barber [mailto:tom.bar...@meteorite.bi] 
Sent: Tuesday, February 09, 2016 3:28 PM
To: dev@oodt.apache.org
Subject: Deploying SOLR (was:Re: Fail to ingest a test file to file manager on 
SuSe Linux)

Out of curiosity, Wei and Jordan if he checks this thread, what 
instructions/hacks are you using to deploy OODT & SOLR?

I know how I do it, I wondered how others do it, ie, what docs do you follow?

Cheers

Tom
**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues 


Deploying SOLR (was:Re: Fail to ingest a test file to file manager on SuSe Linux)

2016-02-09 Thread Tom Barber
Out of curiosity, Wei and Jordan if he checks this thread, what
instructions/hacks are you using to deploy OODT & SOLR?

I know how I do it, I wondered how others do it, ie, what docs do you
follow?

Cheers

Tom


Re: Fail to ingest a test file to file manager on SuSe Linux

2016-02-09 Thread Lewis John Mcgibbney
No problems :)

On Tue, Feb 9, 2016 at 12:17 PM, Shi, Wei  wrote:

> Sorry, it was my mistake. I specified repository manager directory wrong.
>
> Wei
>
> -Original Message-
> From: Lewis John Mcgibbney [mailto:lewis.mcgibb...@gmail.com]
> Sent: Tuesday, February 09, 2016 1:11 PM
> To: dev@oodt.apache.org
> Subject: Re: Fail to ingest a test file to file manager on SuSe Linux
>
> File manager log should provide more insight into the the exception is as
> right now it seems to be too vague for me to debug.
> Lewis
>
> On Tue, Feb 9, 2016 at 9:20 AM, Shi, Wei  wrote:
>
> > Yes, the Solr is on 8080. The version is 4.2.0
> >
> > -Original Message-
> > From: Lewis John Mcgibbney [mailto:lewis.mcgibb...@gmail.com]
> > Sent: Tuesday, February 09, 2016 11:36 AM
> > To: dev@oodt.apache.org
> > Subject: Re: Fail to ingest a test file to file manager on SuSe Linux
> >
> > Is your Solr server running on port 8080 or another port?
> > Which version of Solr are you running?
> >
> > On Tue, Feb 9, 2016 at 8:19 AM, Shi, Wei  wrote:
> >
> > > Hi Every,
> > > I tried to setup the OODT on SuSe Linux server. The installation
> > > went well. I also installed Solr.
> > > Now the ingest test failed because of Bad Request.
> > > I am using jdk 8.
> > >
> > > Any ideas? I attached error message below.
> > >
> > >  ./filemgr-client --url http://localhost:9000 --operation
> > > --ingestProduct --productName test.txt --productStructure Flat
> > > --productTypeName GenericFile --metadataFile
> > > file:///tmp/test.txt.met --refs file:///tmp/test.txt
> > >
> > > log4j:WARN No appenders could be found for logger
> > > (org.springframework.context.support.FileSystemXmlApplicationContext).
> > > log4j:WARN Please initialize the log4j system properly.
> > > Feb 09, 2016 11:05:55 AM
> > > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
> > > INFO: Loading File Manager Configuration Properties from:
> > > [../etc/filemgr.properties]
> > > Feb 09, 2016 11:05:56 AM
> > > org.apache.oodt.cas.filemgr.catalog.solr.SolrCatalog addProduct
> > > INFO: Adding product:test.txt
> > > Feb 09, 2016 11:05:56 AM
> > > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index
> > > INFO: Posting message: > > name="id">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12 > > name="CAS.ProductId">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12 > > el d name="CAS.ProductName">test.txt > > name="CAS.ProductTypeName">GenericFile > > name="CAS.ProductReceivedTime">2016-02-09T11:05:56Z > > name="CAS.ProductTypeId">urn:oodt:GenericFile > > name="CAS.ProductStructure">Flat > > name="CAS.ProductTransferStatus">TRANSFERING to
> URL:
> > > http://localhost:8080/solr/update
> > > Feb 09, 2016 11:05:56 AM
> > > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index
> > > SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request Feb 09, 2016
> > > 11:05:56 AM org.apache.oodt.cas.filemgr.system.XmlRpcFileManager
> > > catalogProduct
> > > SEVERE: ingestProduct: CatalogException when adding Product:
> > > test.txt to
> > > Catalog: Message: HTTP method failed: HTTP/1.1 400 Bad Request Feb
> > > 09,
> > > 2016 11:05:56 AM
> > > org.apache.oodt.cas.filemgr.system.XmlRpcFileManager
> > > ingestProductCore
> > > SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request Feb 09, 2016
> > > 11:05:56 AM
> > > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient
> > > ingestProduct
> > > SEVERE: Failed to ingest product [ name:test.txt] :java.lang.Exception:
> > > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException:
> > > Error ingesting product
> > > [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> > > : HTTP method failed: HTTP/1.1 400 Bad Request -- rolling back
> > > ingest Feb 09, 2016 11:05:56 AM
> > > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient delete
> > > INFO: Posting message:id:null to URL:
> > > http://localhost:8080/solr/update?commit=true
> > > Feb 09, 2016 11:05:56 AM
> > > org.apache.oodt.cas.filemgr.cli.action.IngestProductCliAction
> > > execute
> > > SEVERE: java.lang.Exception:
> > > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException:
> > > Error ingesting product
> > > [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> > > : HTTP method failed: HTTP/1.1 400 Bad Request
> > > ERROR: Failed to ingest product 'test.txt' : java.lang.Exception:
> > > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException:
> > > Error ingesting product
> > > [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> > > : HTTP method failed: HTTP/1.1 400 Bad Request
> > >
> > >
> > > Thanks,
> > >
> > > Wei Shi, M.B.A., M.S.
> > > Architect
> > > UM Comprehensive Cancer Center
> > > NCRC 100/134
> > > O: 734-763-8440 C: 248-835-8453
> > > shi...@med.umich.edu
> > >
> > >
> > >
> > > **
> > > Electronic Mail is not secure, may not be read every day, and should
> > > not be used for urgent or sensitive issues
> > >
> >
> >
> >
> > --
> > *Lewis*
> > 

RE: Fail to ingest a test file to file manager on SuSe Linux

2016-02-09 Thread Shi, Wei
Sorry, it was my mistake. I specified repository manager directory wrong.

Wei

-Original Message-
From: Lewis John Mcgibbney [mailto:lewis.mcgibb...@gmail.com] 
Sent: Tuesday, February 09, 2016 1:11 PM
To: dev@oodt.apache.org
Subject: Re: Fail to ingest a test file to file manager on SuSe Linux

File manager log should provide more insight into the the exception is as right 
now it seems to be too vague for me to debug.
Lewis

On Tue, Feb 9, 2016 at 9:20 AM, Shi, Wei  wrote:

> Yes, the Solr is on 8080. The version is 4.2.0
>
> -Original Message-
> From: Lewis John Mcgibbney [mailto:lewis.mcgibb...@gmail.com]
> Sent: Tuesday, February 09, 2016 11:36 AM
> To: dev@oodt.apache.org
> Subject: Re: Fail to ingest a test file to file manager on SuSe Linux
>
> Is your Solr server running on port 8080 or another port?
> Which version of Solr are you running?
>
> On Tue, Feb 9, 2016 at 8:19 AM, Shi, Wei  wrote:
>
> > Hi Every,
> > I tried to setup the OODT on SuSe Linux server. The installation 
> > went well. I also installed Solr.
> > Now the ingest test failed because of Bad Request.
> > I am using jdk 8.
> >
> > Any ideas? I attached error message below.
> >
> >  ./filemgr-client --url http://localhost:9000 --operation 
> > --ingestProduct --productName test.txt --productStructure Flat 
> > --productTypeName GenericFile --metadataFile 
> > file:///tmp/test.txt.met --refs file:///tmp/test.txt
> >
> > log4j:WARN No appenders could be found for logger 
> > (org.springframework.context.support.FileSystemXmlApplicationContext).
> > log4j:WARN Please initialize the log4j system properly.
> > Feb 09, 2016 11:05:55 AM
> > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
> > INFO: Loading File Manager Configuration Properties from:
> > [../etc/filemgr.properties]
> > Feb 09, 2016 11:05:56 AM
> > org.apache.oodt.cas.filemgr.catalog.solr.SolrCatalog addProduct
> > INFO: Adding product:test.txt
> > Feb 09, 2016 11:05:56 AM
> > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index
> > INFO: Posting message: > name="id">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12 > name="CAS.ProductId">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12 > el d name="CAS.ProductName">test.txt > name="CAS.ProductTypeName">GenericFile > name="CAS.ProductReceivedTime">2016-02-09T11:05:56Z > name="CAS.ProductTypeId">urn:oodt:GenericFile > name="CAS.ProductStructure">Flat > name="CAS.ProductTransferStatus">TRANSFERING to URL:
> > http://localhost:8080/solr/update
> > Feb 09, 2016 11:05:56 AM
> > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index
> > SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request Feb 09, 2016
> > 11:05:56 AM org.apache.oodt.cas.filemgr.system.XmlRpcFileManager
> > catalogProduct
> > SEVERE: ingestProduct: CatalogException when adding Product: 
> > test.txt to
> > Catalog: Message: HTTP method failed: HTTP/1.1 400 Bad Request Feb 
> > 09,
> > 2016 11:05:56 AM 
> > org.apache.oodt.cas.filemgr.system.XmlRpcFileManager
> > ingestProductCore
> > SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request Feb 09, 2016
> > 11:05:56 AM 
> > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient
> > ingestProduct
> > SEVERE: Failed to ingest product [ name:test.txt] :java.lang.Exception:
> > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: 
> > Error ingesting product 
> > [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> > : HTTP method failed: HTTP/1.1 400 Bad Request -- rolling back 
> > ingest Feb 09, 2016 11:05:56 AM 
> > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient delete
> > INFO: Posting message:id:null to URL:
> > http://localhost:8080/solr/update?commit=true
> > Feb 09, 2016 11:05:56 AM
> > org.apache.oodt.cas.filemgr.cli.action.IngestProductCliAction 
> > execute
> > SEVERE: java.lang.Exception:
> > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: 
> > Error ingesting product 
> > [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> > : HTTP method failed: HTTP/1.1 400 Bad Request
> > ERROR: Failed to ingest product 'test.txt' : java.lang.Exception:
> > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: 
> > Error ingesting product 
> > [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> > : HTTP method failed: HTTP/1.1 400 Bad Request
> >
> >
> > Thanks,
> >
> > Wei Shi, M.B.A., M.S.
> > Architect
> > UM Comprehensive Cancer Center
> > NCRC 100/134
> > O: 734-763-8440 C: 248-835-8453
> > shi...@med.umich.edu
> >
> >
> >
> > **
> > Electronic Mail is not secure, may not be read every day, and should 
> > not be used for urgent or sensitive issues
> >
>
>
>
> --
> *Lewis*
> **
> Electronic Mail is not secure, may not be read every day, and should 
> not be used for urgent or sensitive issues
>



--
*Lewis*
**
Electronic Mail is not secure, may not be read every day, and should n

Re: Fail to ingest a test file to file manager on SuSe Linux

2016-02-09 Thread Lewis John Mcgibbney
File manager log should provide more insight into the the exception is as
right now it seems to be too vague for me to debug.
Lewis

On Tue, Feb 9, 2016 at 9:20 AM, Shi, Wei  wrote:

> Yes, the Solr is on 8080. The version is 4.2.0
>
> -Original Message-
> From: Lewis John Mcgibbney [mailto:lewis.mcgibb...@gmail.com]
> Sent: Tuesday, February 09, 2016 11:36 AM
> To: dev@oodt.apache.org
> Subject: Re: Fail to ingest a test file to file manager on SuSe Linux
>
> Is your Solr server running on port 8080 or another port?
> Which version of Solr are you running?
>
> On Tue, Feb 9, 2016 at 8:19 AM, Shi, Wei  wrote:
>
> > Hi Every,
> > I tried to setup the OODT on SuSe Linux server. The installation went
> > well. I also installed Solr.
> > Now the ingest test failed because of Bad Request.
> > I am using jdk 8.
> >
> > Any ideas? I attached error message below.
> >
> >  ./filemgr-client --url http://localhost:9000 --operation
> > --ingestProduct --productName test.txt --productStructure Flat
> > --productTypeName GenericFile --metadataFile file:///tmp/test.txt.met
> > --refs file:///tmp/test.txt
> >
> > log4j:WARN No appenders could be found for logger
> > (org.springframework.context.support.FileSystemXmlApplicationContext).
> > log4j:WARN Please initialize the log4j system properly.
> > Feb 09, 2016 11:05:55 AM
> > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
> > INFO: Loading File Manager Configuration Properties from:
> > [../etc/filemgr.properties]
> > Feb 09, 2016 11:05:56 AM
> > org.apache.oodt.cas.filemgr.catalog.solr.SolrCatalog addProduct
> > INFO: Adding product:test.txt
> > Feb 09, 2016 11:05:56 AM
> > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index
> > INFO: Posting message: > name="id">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12 > name="CAS.ProductId">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12 > d name="CAS.ProductName">test.txt > name="CAS.ProductTypeName">GenericFile > name="CAS.ProductReceivedTime">2016-02-09T11:05:56Z > name="CAS.ProductTypeId">urn:oodt:GenericFile > name="CAS.ProductStructure">Flat > name="CAS.ProductTransferStatus">TRANSFERING to URL:
> > http://localhost:8080/solr/update
> > Feb 09, 2016 11:05:56 AM
> > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index
> > SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request Feb 09, 2016
> > 11:05:56 AM org.apache.oodt.cas.filemgr.system.XmlRpcFileManager
> > catalogProduct
> > SEVERE: ingestProduct: CatalogException when adding Product: test.txt
> > to
> > Catalog: Message: HTTP method failed: HTTP/1.1 400 Bad Request Feb 09,
> > 2016 11:05:56 AM org.apache.oodt.cas.filemgr.system.XmlRpcFileManager
> > ingestProductCore
> > SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request Feb 09, 2016
> > 11:05:56 AM org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient
> > ingestProduct
> > SEVERE: Failed to ingest product [ name:test.txt] :java.lang.Exception:
> > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error
> > ingesting product
> > [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> > : HTTP method failed: HTTP/1.1 400 Bad Request -- rolling back ingest
> > Feb 09, 2016 11:05:56 AM
> > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient delete
> > INFO: Posting message:id:null to URL:
> > http://localhost:8080/solr/update?commit=true
> > Feb 09, 2016 11:05:56 AM
> > org.apache.oodt.cas.filemgr.cli.action.IngestProductCliAction execute
> > SEVERE: java.lang.Exception:
> > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error
> > ingesting product
> > [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> > : HTTP method failed: HTTP/1.1 400 Bad Request
> > ERROR: Failed to ingest product 'test.txt' : java.lang.Exception:
> > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error
> > ingesting product
> > [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> > : HTTP method failed: HTTP/1.1 400 Bad Request
> >
> >
> > Thanks,
> >
> > Wei Shi, M.B.A., M.S.
> > Architect
> > UM Comprehensive Cancer Center
> > NCRC 100/134
> > O: 734-763-8440 C: 248-835-8453
> > shi...@med.umich.edu
> >
> >
> >
> > **
> > Electronic Mail is not secure, may not be read every day, and should
> > not be used for urgent or sensitive issues
> >
>
>
>
> --
> *Lewis*
> **
> Electronic Mail is not secure, may not be read every day, and should not
> be used for urgent or sensitive issues
>



-- 
*Lewis*


Re: FileManager: Delete Product Bug?

2016-02-09 Thread Tom Barber
Hey Jordan

I just deployed 0.11 and updated the filemgr library manually, and I
literally copied and pasted your SQL command into my terminal and it ran
fine.

I wondering if the non-deleted deleted items are making it get its knickers
in a twist? Otherwise I'm not sure why you're not getting anything back.

Tom

On Tue, Feb 9, 2016 at 4:57 PM, Tom Barber  wrote:

> Alrighty, finally got back from a day in the office, the hotel wifi is
> currently up, I'll checkout this solr delete issue now.
>
> Tom
>
>
> On Mon, Feb 8, 2016 at 9:13 PM, Tom Barber 
> wrote:
>
>> Might take a while as the hotel wifi just crashed :)
>> On 8 Feb 2016 21:47, "Tom Barber"  wrote:
>>
>>> Probably not, but it's been a while. I'll spin up radix and have a
>>> fiddle.
>>>
>>> Tom
>>>
>>> On Mon, Feb 8, 2016 at 8:42 PM, Jordan Padams 
>>> wrote:
>>>
 Blast! You're right! I wasn't paying attention. Just pulled from
 https://svn.apache.org/repos/asf/oodt/trunk/ instead of Github.

 Product delete - Success.


 The "SELECT * ..." SQL query is still not returning anything. Am I doing
 that wrong?


 Thanks,
 Jordan


 On Mon, Feb 8, 2016 at 12:16 PM, Jordan Padams >>> >
 wrote:

 > I just pulled the latest 0.11-SNAPSHOT from the trunk and rebuilt the
 File
 > Manager, but I now get a different error when trying to delete the
 product:
 >
 > $ ./filemgr-client -op --hasProduct --productName blah.txt --url
 > http://localhost:9000
 > Feb 08, 2016 12:05:59 PM
 > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
 > INFO: Loading File Manager Configuration Properties from:
 > [../etc/filemgr.properties]
 > hasProduct: Result: true
 >
 > $ ./filemgr-client -op --deleteProductByName --productName blah.txt
 --url
 > http://localhost:9000
 > Feb 08, 2016 12:07:26 PM
 > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
 > INFO: Loading File Manager Configuration Properties from:
 > [../etc/filemgr.properties]
 > Feb 08, 2016 12:07:26 PM
 > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
 > INFO: Loading File Manager Configuration Properties from:
 > [../etc/filemgr.properties]
 > ERROR: Failed to delete product
 > 'org.apache.oodt.cas.filemgr.structs.Product@2759b14b' :
 > java.lang.Exception: java.lang.IllegalArgumentException: URI is not
 absolute
 >
 >
 >
 > I also noticed some odd results when trying to perform a SQL query:
 >
 > $ ./filemgr-client --url http://localhost:9000 -op -sql -q "SELECT *
 FROM
 > GenericFile"
 > Feb 08, 2016 12:13:31 PM
 > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
 > INFO: Loading File Manager Configuration Properties from:
 > [../etc/filemgr.properties]
 > Feb 08, 2016 12:13:32 PM
 > org.apache.oodt.cas.filemgr.system.XmlRpcFileManager complexQuery
 > INFO: Query returned 1 results
 >
 >
 >
 > But then it didn't actually return anything. If I use the deprecated
 > query_tool (as is noted in the wiki instructions) it returns all of
 the
 > metadata, as expected.
 >
 > Thanks,
 > Jordan
 >
 > On Mon, Feb 8, 2016 at 9:15 AM, Jordan Padams <
 jordan.pad...@gmail.com>
 > wrote:
 >
 >> Thanks all. I will use the latest from trunk. Couldn't track down
 that
 >> issue but glad it was caught.
 >>
 >> On Sun, Feb 7, 2016 at 10:29 AM, Lewis John Mcgibbney <
 >> lewis.mcgibb...@gmail.com> wrote:
 >>
 >>> ACk thanks Tom. Good man.
 >>>
 >>> On Sun, Feb 7, 2016 at 10:27 AM, Tom Barber <
 tom.bar...@meteorite.bi>
 >>> wrote:
 >>>
 >>> > Yeah I fixed one delete bug and created another,  PITA. I created
 the
 >>> bug
 >>> > so I'll fix the bug and as you're all so nice I might even write
 you a
 >>> test
 >>> > to validate it ! ;)
 >>> > On 7 Feb 2016 17:10, "Lewis John Mcgibbney" <
 lewis.mcgibb...@gmail.com
 >>> >
 >>> > wrote:
 >>> >
 >>> > > ACK
 >>> > > This issue clearly justifies a bug fix.
 >>> > > Nice one Tom thanks for patching.
 >>> > >
 >>> > > On Sun, Feb 7, 2016 at 6:54 AM, Tom Barber <
 tom.bar...@meteorite.bi>
 >>> > > wrote:
 >>> > >
 >>> > > > Fair enough!
 >>> > > > On 7 Feb 2016 2:35 pm, "Mattmann, Chris A (3980)" <
 >>> > > > chris.a.mattm...@jpl.nasa.gov> wrote:
 >>> > > >
 >>> > > > > Hey Tom, easier to just call it 0.12 and +1 to doing so..
 >>> > > > >
 >>> > > > >
 >>> ++
 >>> > > > > Chris Mattmann, Ph.D.
 >>> > > > > Chief Architect
 >>> > > > > Instrument Software and Science Data Systems Section (398)
 >>> > > > > NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
 >>> > > > > Office: 168-519, Mailstop: 168-52

RE: Fail to ingest a test file to file manager on SuSe Linux

2016-02-09 Thread Shi, Wei
Yes, the Solr is on 8080. The version is 4.2.0

-Original Message-
From: Lewis John Mcgibbney [mailto:lewis.mcgibb...@gmail.com] 
Sent: Tuesday, February 09, 2016 11:36 AM
To: dev@oodt.apache.org
Subject: Re: Fail to ingest a test file to file manager on SuSe Linux

Is your Solr server running on port 8080 or another port?
Which version of Solr are you running?

On Tue, Feb 9, 2016 at 8:19 AM, Shi, Wei  wrote:

> Hi Every,
> I tried to setup the OODT on SuSe Linux server. The installation went 
> well. I also installed Solr.
> Now the ingest test failed because of Bad Request.
> I am using jdk 8.
>
> Any ideas? I attached error message below.
>
>  ./filemgr-client --url http://localhost:9000 --operation 
> --ingestProduct --productName test.txt --productStructure Flat 
> --productTypeName GenericFile --metadataFile file:///tmp/test.txt.met 
> --refs file:///tmp/test.txt
>
> log4j:WARN No appenders could be found for logger 
> (org.springframework.context.support.FileSystemXmlApplicationContext).
> log4j:WARN Please initialize the log4j system properly.
> Feb 09, 2016 11:05:55 AM
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
> INFO: Loading File Manager Configuration Properties from:
> [../etc/filemgr.properties]
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.catalog.solr.SolrCatalog addProduct
> INFO: Adding product:test.txt
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index
> INFO: Posting message: name="id">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12 name="CAS.ProductId">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12 d name="CAS.ProductName">test.txt name="CAS.ProductTypeName">GenericFile name="CAS.ProductReceivedTime">2016-02-09T11:05:56Z name="CAS.ProductTypeId">urn:oodt:GenericFile name="CAS.ProductStructure">Flat name="CAS.ProductTransferStatus">TRANSFERING to URL:
> http://localhost:8080/solr/update
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index
> SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request Feb 09, 2016 
> 11:05:56 AM org.apache.oodt.cas.filemgr.system.XmlRpcFileManager 
> catalogProduct
> SEVERE: ingestProduct: CatalogException when adding Product: test.txt 
> to
> Catalog: Message: HTTP method failed: HTTP/1.1 400 Bad Request Feb 09, 
> 2016 11:05:56 AM org.apache.oodt.cas.filemgr.system.XmlRpcFileManager 
> ingestProductCore
> SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request Feb 09, 2016 
> 11:05:56 AM org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
> ingestProduct
> SEVERE: Failed to ingest product [ name:test.txt] :java.lang.Exception:
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error 
> ingesting product 
> [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> : HTTP method failed: HTTP/1.1 400 Bad Request -- rolling back ingest 
> Feb 09, 2016 11:05:56 AM 
> org.apache.oodt.cas.filemgr.catalog.solr.SolrClient delete
> INFO: Posting message:id:null to URL:
> http://localhost:8080/solr/update?commit=true
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.cli.action.IngestProductCliAction execute
> SEVERE: java.lang.Exception:
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error 
> ingesting product 
> [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> : HTTP method failed: HTTP/1.1 400 Bad Request
> ERROR: Failed to ingest product 'test.txt' : java.lang.Exception:
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error 
> ingesting product 
> [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> : HTTP method failed: HTTP/1.1 400 Bad Request
>
>
> Thanks,
>
> Wei Shi, M.B.A., M.S.
> Architect
> UM Comprehensive Cancer Center
> NCRC 100/134
> O: 734-763-8440 C: 248-835-8453
> shi...@med.umich.edu
>
>
>
> **
> Electronic Mail is not secure, may not be read every day, and should 
> not be used for urgent or sensitive issues
>



--
*Lewis*
**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues 


Re: FileManager: Delete Product Bug?

2016-02-09 Thread Tom Barber
Alrighty, finally got back from a day in the office, the hotel wifi is
currently up, I'll checkout this solr delete issue now.

Tom

On Mon, Feb 8, 2016 at 9:13 PM, Tom Barber  wrote:

> Might take a while as the hotel wifi just crashed :)
> On 8 Feb 2016 21:47, "Tom Barber"  wrote:
>
>> Probably not, but it's been a while. I'll spin up radix and have a fiddle.
>>
>> Tom
>>
>> On Mon, Feb 8, 2016 at 8:42 PM, Jordan Padams 
>> wrote:
>>
>>> Blast! You're right! I wasn't paying attention. Just pulled from
>>> https://svn.apache.org/repos/asf/oodt/trunk/ instead of Github.
>>>
>>> Product delete - Success.
>>>
>>>
>>> The "SELECT * ..." SQL query is still not returning anything. Am I doing
>>> that wrong?
>>>
>>>
>>> Thanks,
>>> Jordan
>>>
>>>
>>> On Mon, Feb 8, 2016 at 12:16 PM, Jordan Padams 
>>> wrote:
>>>
>>> > I just pulled the latest 0.11-SNAPSHOT from the trunk and rebuilt the
>>> File
>>> > Manager, but I now get a different error when trying to delete the
>>> product:
>>> >
>>> > $ ./filemgr-client -op --hasProduct --productName blah.txt --url
>>> > http://localhost:9000
>>> > Feb 08, 2016 12:05:59 PM
>>> > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
>>> > INFO: Loading File Manager Configuration Properties from:
>>> > [../etc/filemgr.properties]
>>> > hasProduct: Result: true
>>> >
>>> > $ ./filemgr-client -op --deleteProductByName --productName blah.txt
>>> --url
>>> > http://localhost:9000
>>> > Feb 08, 2016 12:07:26 PM
>>> > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
>>> > INFO: Loading File Manager Configuration Properties from:
>>> > [../etc/filemgr.properties]
>>> > Feb 08, 2016 12:07:26 PM
>>> > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
>>> > INFO: Loading File Manager Configuration Properties from:
>>> > [../etc/filemgr.properties]
>>> > ERROR: Failed to delete product
>>> > 'org.apache.oodt.cas.filemgr.structs.Product@2759b14b' :
>>> > java.lang.Exception: java.lang.IllegalArgumentException: URI is not
>>> absolute
>>> >
>>> >
>>> >
>>> > I also noticed some odd results when trying to perform a SQL query:
>>> >
>>> > $ ./filemgr-client --url http://localhost:9000 -op -sql -q "SELECT *
>>> FROM
>>> > GenericFile"
>>> > Feb 08, 2016 12:13:31 PM
>>> > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
>>> > INFO: Loading File Manager Configuration Properties from:
>>> > [../etc/filemgr.properties]
>>> > Feb 08, 2016 12:13:32 PM
>>> > org.apache.oodt.cas.filemgr.system.XmlRpcFileManager complexQuery
>>> > INFO: Query returned 1 results
>>> >
>>> >
>>> >
>>> > But then it didn't actually return anything. If I use the deprecated
>>> > query_tool (as is noted in the wiki instructions) it returns all of the
>>> > metadata, as expected.
>>> >
>>> > Thanks,
>>> > Jordan
>>> >
>>> > On Mon, Feb 8, 2016 at 9:15 AM, Jordan Padams >> >
>>> > wrote:
>>> >
>>> >> Thanks all. I will use the latest from trunk. Couldn't track down that
>>> >> issue but glad it was caught.
>>> >>
>>> >> On Sun, Feb 7, 2016 at 10:29 AM, Lewis John Mcgibbney <
>>> >> lewis.mcgibb...@gmail.com> wrote:
>>> >>
>>> >>> ACk thanks Tom. Good man.
>>> >>>
>>> >>> On Sun, Feb 7, 2016 at 10:27 AM, Tom Barber >> >
>>> >>> wrote:
>>> >>>
>>> >>> > Yeah I fixed one delete bug and created another,  PITA. I created
>>> the
>>> >>> bug
>>> >>> > so I'll fix the bug and as you're all so nice I might even write
>>> you a
>>> >>> test
>>> >>> > to validate it ! ;)
>>> >>> > On 7 Feb 2016 17:10, "Lewis John Mcgibbney" <
>>> lewis.mcgibb...@gmail.com
>>> >>> >
>>> >>> > wrote:
>>> >>> >
>>> >>> > > ACK
>>> >>> > > This issue clearly justifies a bug fix.
>>> >>> > > Nice one Tom thanks for patching.
>>> >>> > >
>>> >>> > > On Sun, Feb 7, 2016 at 6:54 AM, Tom Barber <
>>> tom.bar...@meteorite.bi>
>>> >>> > > wrote:
>>> >>> > >
>>> >>> > > > Fair enough!
>>> >>> > > > On 7 Feb 2016 2:35 pm, "Mattmann, Chris A (3980)" <
>>> >>> > > > chris.a.mattm...@jpl.nasa.gov> wrote:
>>> >>> > > >
>>> >>> > > > > Hey Tom, easier to just call it 0.12 and +1 to doing so..
>>> >>> > > > >
>>> >>> > > > >
>>> >>> ++
>>> >>> > > > > Chris Mattmann, Ph.D.
>>> >>> > > > > Chief Architect
>>> >>> > > > > Instrument Software and Science Data Systems Section (398)
>>> >>> > > > > NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
>>> >>> > > > > Office: 168-519, Mailstop: 168-527
>>> >>> > > > > Email: chris.a.mattm...@nasa.gov
>>> >>> > > > > WWW:  http://sunset.usc.edu/~mattmann/
>>> >>> > > > >
>>> >>> ++
>>> >>> > > > > Adjunct Associate Professor, Computer Science Department
>>> >>> > > > > University of Southern California, Los Angeles, CA 90089 USA
>>> >>> > > > >
>>> >>> ++
>>> >>> > > > >
>>> >>> > > > >
>>> >>> > > > >
>>> >>> > > > >
>>> >>> > > > >
>>> >>> > > > > -Original Message-
>>> >>> > > > > From: 

Re: Fail to ingest a test file to file manager on SuSe Linux

2016-02-09 Thread Lewis John Mcgibbney
Is your Solr server running on port 8080 or another port?
Which version of Solr are you running?

On Tue, Feb 9, 2016 at 8:19 AM, Shi, Wei  wrote:

> Hi Every,
> I tried to setup the OODT on SuSe Linux server. The installation went
> well. I also installed Solr.
> Now the ingest test failed because of Bad Request.
> I am using jdk 8.
>
> Any ideas? I attached error message below.
>
>  ./filemgr-client --url http://localhost:9000 --operation --ingestProduct
> --productName test.txt --productStructure Flat --productTypeName
> GenericFile --metadataFile file:///tmp/test.txt.met --refs
> file:///tmp/test.txt
>
> log4j:WARN No appenders could be found for logger
> (org.springframework.context.support.FileSystemXmlApplicationContext).
> log4j:WARN Please initialize the log4j system properly.
> Feb 09, 2016 11:05:55 AM
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
> INFO: Loading File Manager Configuration Properties from:
> [../etc/filemgr.properties]
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.catalog.solr.SolrCatalog addProduct
> INFO: Adding product:test.txt
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index
> INFO: Posting message: name="id">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12 name="CAS.ProductId">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12 name="CAS.ProductName">test.txt name="CAS.ProductTypeName">GenericFile name="CAS.ProductReceivedTime">2016-02-09T11:05:56Z name="CAS.ProductTypeId">urn:oodt:GenericFile name="CAS.ProductStructure">Flat name="CAS.ProductTransferStatus">TRANSFERING to URL:
> http://localhost:8080/solr/update
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index
> SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManager catalogProduct
> SEVERE: ingestProduct: CatalogException when adding Product: test.txt to
> Catalog: Message: HTTP method failed: HTTP/1.1 400 Bad Request
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManager ingestProductCore
> SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient ingestProduct
> SEVERE: Failed to ingest product [ name:test.txt] :java.lang.Exception:
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error
> ingesting product [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> : HTTP method failed: HTTP/1.1 400 Bad Request -- rolling back ingest
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.catalog.solr.SolrClient delete
> INFO: Posting message:id:null to URL:
> http://localhost:8080/solr/update?commit=true
> Feb 09, 2016 11:05:56 AM
> org.apache.oodt.cas.filemgr.cli.action.IngestProductCliAction execute
> SEVERE: java.lang.Exception:
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error
> ingesting product [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> : HTTP method failed: HTTP/1.1 400 Bad Request
> ERROR: Failed to ingest product 'test.txt' : java.lang.Exception:
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error
> ingesting product [org.apache.oodt.cas.filemgr.structs.Product@469d4b24]
> : HTTP method failed: HTTP/1.1 400 Bad Request
>
>
> Thanks,
>
> Wei Shi, M.B.A., M.S.
> Architect
> UM Comprehensive Cancer Center
> NCRC 100/134
> O: 734-763-8440 C: 248-835-8453
> shi...@med.umich.edu
>
>
>
> **
> Electronic Mail is not secure, may not be read every day, and should not
> be used for urgent or sensitive issues
>



-- 
*Lewis*


Fail to ingest a test file to file manager on SuSe Linux

2016-02-09 Thread Shi, Wei
Hi Every,
I tried to setup the OODT on SuSe Linux server. The installation went well. I 
also installed Solr.
Now the ingest test failed because of Bad Request.
I am using jdk 8.

Any ideas? I attached error message below.

 ./filemgr-client --url http://localhost:9000 --operation --ingestProduct 
--productName test.txt --productStructure Flat --productTypeName GenericFile 
--metadataFile file:///tmp/test.txt.met --refs file:///tmp/test.txt

log4j:WARN No appenders could be found for logger 
(org.springframework.context.support.FileSystemXmlApplicationContext).
log4j:WARN Please initialize the log4j system properly.
Feb 09, 2016 11:05:55 AM 
org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient 
INFO: Loading File Manager Configuration Properties from: 
[../etc/filemgr.properties]
Feb 09, 2016 11:05:56 AM org.apache.oodt.cas.filemgr.catalog.solr.SolrCatalog 
addProduct
INFO: Adding product:test.txt
Feb 09, 2016 11:05:56 AM org.apache.oodt.cas.filemgr.catalog.solr.SolrClient 
index
INFO: Posting message:b69ee1e0-f9f4-4cf0-80e8-232f74e31d12b69ee1e0-f9f4-4cf0-80e8-232f74e31d12test.txtGenericFile2016-02-09T11:05:56Zurn:oodt:GenericFileFlatTRANSFERING to 
URL:http://localhost:8080/solr/update
Feb 09, 2016 11:05:56 AM org.apache.oodt.cas.filemgr.catalog.solr.SolrClient 
index
SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request
Feb 09, 2016 11:05:56 AM org.apache.oodt.cas.filemgr.system.XmlRpcFileManager 
catalogProduct
SEVERE: ingestProduct: CatalogException when adding Product: test.txt to 
Catalog: Message: HTTP method failed: HTTP/1.1 400 Bad Request
Feb 09, 2016 11:05:56 AM org.apache.oodt.cas.filemgr.system.XmlRpcFileManager 
ingestProductCore
SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request
Feb 09, 2016 11:05:56 AM 
org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient ingestProduct
SEVERE: Failed to ingest product [ name:test.txt] :java.lang.Exception: 
org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error 
ingesting product [org.apache.oodt.cas.filemgr.structs.Product@469d4b24] : HTTP 
method failed: HTTP/1.1 400 Bad Request -- rolling back ingest
Feb 09, 2016 11:05:56 AM org.apache.oodt.cas.filemgr.catalog.solr.SolrClient 
delete
INFO: Posting message:id:null to 
URL:http://localhost:8080/solr/update?commit=true
Feb 09, 2016 11:05:56 AM 
org.apache.oodt.cas.filemgr.cli.action.IngestProductCliAction execute
SEVERE: java.lang.Exception: 
org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error 
ingesting product [org.apache.oodt.cas.filemgr.structs.Product@469d4b24] : HTTP 
method failed: HTTP/1.1 400 Bad Request
ERROR: Failed to ingest product 'test.txt' : java.lang.Exception: 
org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error 
ingesting product [org.apache.oodt.cas.filemgr.structs.Product@469d4b24] : HTTP 
method failed: HTTP/1.1 400 Bad Request


Thanks,

Wei Shi, M.B.A., M.S.
Architect 
UM Comprehensive Cancer Center
NCRC 100/134
O: 734-763-8440 C: 248-835-8453
shi...@med.umich.edu
 


**
Electronic Mail is not secure, may not be read every day, and should not be 
used for urgent or sensitive issues