You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rya.apache.org by Fan Yang <fy...@umbc.edu> on 2015/11/19 08:22:42 UTC

Maven Build Error

Hi,

My name is Fan Yang, I am a phd student in Information Systems Department, UMBC. Currently I am working on Rya project under the supervision of Dr. Adina. I faced a problem when I tried to reproduce the development environment on my virtual machine.

When I built Rya project by Maven, it gave me some error report and same thing happened even I tried different versions of Maven. I am attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1 (log221.txt) and looking for some help. Thank you so much!

My development environment is:

OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
Maven version: 3.3.3
Java version: OpenJDK Runtime Environment 1.7.0_79
Accumulo version: 1.6.1.2.2.4.2-2
Hadoop version:2.6.0.2.2.4.2-2

Bests,

Fan


RE: Maven Build Error

Posted by "Lotts, David" <Da...@parsons.com>.
Fan,
(I was just working with this, so I thought I'd chime in)
I assume you clicked on "New Repository", right?
Did you set your hosts file in windows to set "rya-example-box" to the IP address?
At the top of your workbench web page, do you see something like this?  
---
Current Selections
Sesame server	http://rya-example-box:8080/openrdf-sesame	
Repository	None	
User (optional)	None	
---
david.

-----Original Message-----
From: Fan Yang [mailto:fyang1@umbc.edu] 
Sent: Tuesday, January 12, 2016 1:05 PM
To: Aaron D. Mihalik <aa...@gmail.com>
Cc: Adina Crainiceanu <ad...@usna.edu>; dev@rya.incubator.apache.org
Subject: Re: Maven Build Error

Hi Aaron,

Thank you so much for your help! I followed the instructions and created the VM. Everything works fine except one thing I am not very clear: in “connecting to Rya via OpenRDF Workbench” step, I cannot find “Rya Accumulo Store” in “Type” option. I am wondering if I should make some configurations in Rya and Accumulo. 

Bests,

Fan
> On Jan 1, 2016, at 10:54 PM, Aaron D. Mihalik <aa...@gmail.com> wrote:
> 
> Fan,
> 
> I'm sorry about the delay, but I finally got the Rya/Vagrant/OpenRDF Workbench VM into a good spot.  Can you test out the instructions at:
> 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_amihal
> ik_incubator-2Drya_blob_RYA-2D4_extras_vagrantExample_src_main_vagrant
> _readme.md&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ru
> y1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczS
> aL_WHX6lhyV4v-i9Y&s=NN0u30qZOaV2yFZs4mcLgb3TyspnK762UqoDX2X2ji0&e=  
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_amiha
> lik_incubator-2Drya_blob_RYA-2D4_extras_vagrantExample_src_main_vagran
> t_readme.md&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=r
> uy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQcz
> SaL_WHX6lhyV4v-i9Y&s=NN0u30qZOaV2yFZs4mcLgb3TyspnK762UqoDX2X2ji0&e= >
> 
> Once you run this VM, it should be straightforward to upload and query your data through OpenRDF Workbench.
> 
> For instance, once you connect Rya and OpenRDF Workbench, you can open the Workbench, click on "Add", and cut-and-paste your ntriples into the "RDF Content" field.
> 
> Then you can click on "Query" and run this SPARQL query:  
> 
> select * where { 
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__mynamespace_Produ
> ctType1-20-3Chttp-3A__mynamespace_ProductType1&d=BQIFaQ&c=Nwf-pp4xtYRe
> 0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdV
> l7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=eCkrW8p5Z6XoxO
> ny8-ZjStEehrVj_MRGXci6y0oC4UY&e= >> ?p ?o. }
> 
> --Aaron
> 
> On Thu, Dec 17, 2015 at 1:00 PM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
> Hi Dr. Adina,
> 
> I named my $RDF_DATA file as ntriplesFile and put it under the folder same as Java code’s. I tried to delete the empty loadrdf file and re-run the code, the same error message was showed up. The error log containing the command I’m using, loadrdf java code and ntripleFile are attached in this email. Thanks!
> 
> Bests,
> 
> Fan
> 
>  
>> On Dec 16, 2015, at 2:55 PM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>> 
>> Hi Dr. Adina,
>> 
>> The one I’m using is an empty file. Cause when the war package is deployed, there is no such file named loadrdf under the certain folder. The n-Triples file I’m using is the one listed on the tutorial, the content is :
>> 
>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__mynamespace_ProductType1-20-3Chttp-3A__mynamespace_ProductType1&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=eCkrW8p5Z6XoxOny8-ZjStEehrVj_MRGXci6y0oC4UY&e= >> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_1999_02_22-2Drdf-2Dsyntax-2Dns-23type-20-3Chttp-3A__www.w3.org_1999_02_22-2Drdf-2Dsyntax-2Dns-23type&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=OH6E1y2As4YzL6RPctKyxPCev1IdB_nrEk-8LPWIuZM&e= >> <https://urldefense.proofpoint.com/v2/url?u=http-3A__mynamespace_ProductType-20-3Chttp-3A__mynamespace_ProductType&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=LRiWFBWdPKk2L0JKzWgkld5KsTwVkdChClZ_NOdGKDQ&e= >> .
>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__mynamespace_ProductType1-20-3Chttp-3A__mynamespace_ProductType1&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=eCkrW8p5Z6XoxOny8-ZjStEehrVj_MRGXci6y0oC4UY&e= >> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2000_01_rdf-2Dschema-23label-20-3Chttp-3A__www.w3.org_2000_01_rdf-2Dschema-23label&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=eeQAH2Xvhl40l90BaiepwQyNHvCon8CyUwugPW_usCQ&e= >> "Thing" .
>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__mynamespace_ProductType1-20-3Chttp-3A__mynamespace_ProductType1&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=eCkrW8p5Z6XoxOny8-ZjStEehrVj_MRGXci6y0oC4UY&e= >> <https://urldefense.proofpoint.com/v2/url?u=http-3A__purl.org_dc_elements_1.1_publisher-20-3Chttp-3A__purl.org_dc_elements_1.1_publisher&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=xGIwrMp1H6em9keys5yfe-2Ay2h_omdNyiRt7acllz4&e= >> <https://urldefense.proofpoint.com/v2/url?u=http-3A__mynamespace_Publisher1-20-3Chttp-3A__mynamespace_Publisher1&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=47B9jmZ1iaKVztuKYdL2o5YePZivD28fkgslWgzWGuU&e= >> .
>> Bests,
>> 
>> Fan
>>> On Dec 16, 2015, at 2:23 PM, Adina Crainiceanu <adina@usna.edu <ma...@usna.edu>> wrote:
>>> 
>>> Fan,
>>> 
>>> Can you please send the rdf file you are trying to load? Maybe that is the problem.
>>> 
>>> Adina
>>> 
>>> On Thu, Dec 3, 2015 at 12:44 PM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>>> Hi Aaron,
>>> 
>>> There is an additional information you may need: Once I checked the web.rya folder under the webapps directory, there is no such file named loadrdf or queryrdf, so I created empty ones. Maybe that causes the error. Could you check your webapps directory to see if those files contain some certain scripts? Thank you so much!
>>> 
>>> Bests,
>>> 
>>> Fan
>>> > On Dec 3, 2015, at 3:15 AM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>>> >
>>> > Hi Aaron,
>>> >
>>> > Thank you so much for your help! I reproduced the Vagrant VM successfully by following your instruction. Everything is working except loading data part. Even I fixed the “/“ error in the code I still face the same HTTP 500 error. I capture the error message when I load the link [4] https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_loadrdf-3Fformat-3DN-2DTriples&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=f3Ox4kYYCVOGqBSFmpDBuChcs-jcehRqtgcS_bbiZAo&e=  <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_loadrdf-3Fformat-3DN-2DTriples&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=f3Ox4kYYCVOGqBSFmpDBuChcs-jcehRqtgcS_bbiZAo&e= > <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_loadrdf-3Fformat-3DN-2DTriples-20-3Chttp-3A__localhost-3A8080_web.rya_loadrdf-3Fformat-3DN-2DTriples&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=UrnCOfkEkPEMGtIju5LKq8tuV2kZpw36WKWnnMcHu5A&e= >> on my browser and copy the tomcat log file to you.
>>> >
>>> > Bests,
>>> >
>>> > Fan
>>> >
>>> > <catalina.2015-12-03.log>
>>> > <error log>
>>> >
>>> >> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <aaron.mihalik@gmail.com <ma...@gmail.com> <mailto:aaron.mihalik@gmail.com <ma...@gmail.com>>> wrote:
>>> >>
>>> >> Hi Fan,
>>> >>
>>> >> The tutorial is a bit dated, so it might be confusing/incorrect.
>>> >>
>>> >> You have a couple options:
>>> >>
>>> >> 1. You could start using the Vagrant vm that I'm putting together as a "Rya Quickstart VM".
>>> >>
>>> >> It's a bit rough right now, and it doesn't have Hadoop or MapReduce (so you can't do the bulk load), but it does have the script you mentioned for loading N-Triples.  An early copy of the Vagrantfile is here [1].
>>> >>
>>> >> It'll take about 30 minutes to build the VM, but once you do, you'll have the rya web endpoint up and running here [2] and you can ssh into the box to load data.  Once you ssh into the machine, you can run 'java LoadDataServletRun' to load n-triples files.  Infact, you that script will take a "batchSize" parameter to split a large ntriples into small loads.
>>> >>
>>> >> 2. We can help you debug your current vm.
>>> >>
>>> >> The first step would be to try to hit this webpage [3] and see if the sparql query page loads.  Also note that the URL you provided has an extra "/" in it and you should try [4].
>>> >>
>>> >> If those load properly, then the issue might be the LoadDataServletRun file itself (I haven't tried the one you mentioned), but you could try the new one located at the bottom of the Vagrant file.
>>> >>
>>> >> If those links do not load properly, please send us your tomcat logs and we'll take a look to see what's up with tomcat.
>>> >>
>>> >> --Aaron
>>> >>
>>> >> [1] 
>>> >> https://urldefense.proofpoint.com/v2/url?u=https-3A__raw.githubus
>>> >> ercontent.com_amihalik_incubator-2Drya_RYA-2D4_extras_indexingSai
>>> >> lExample_src_main_vagrant_Vagrantfile&d=BQIFaQ&c=Nwf-pp4xtYRe0sCR
>>> >> VM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=-Z2Rh-NAD5hoq198jtEK9lNDzm49qGchdf07A8B9xTw&e=  <https://urldefense.proofpoint.com/v2/url?u=https-3A__raw.githubusercontent.com_amihalik_incubator-2Drya_RYA-2D4_extras_indexingSailExample_src_main_vagrant_Vagrantfile&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=-Z2Rh-NAD5hoq198jtEK9lNDzm49qGchdf07A8B9xTw&e= > <https://urldefense.proofpoint.com/v2/url?u=https-3A__raw.githubusercontent.com_amihalik_incubator-2Drya_RYA-2D4_extras_indexingSailExample_src_main_vagrant_Vagrantfile-20-3Chttps-3A__raw.githubusercontent.com_amihalik_incubator-2Drya_RYA-2D4_extras_indexingSailExample_src_main_vagrant_Vagrantfile&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=PSBRKcMBqHGnjGtWvClWCGU2fcMbHwbAJDee8A_XtGQ&e= >> [2] https://urldefense.proofpoint.com/v2/url?u=http-3A__192.168.33.10-3A8080_web.rya_sparqlQuery.jsp&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=GKG-hoFSZ2TYl4AC0lKdAxUO-e0RYrb0f4xG78-iTKk&e=  <https://urldefense.proofpoint.com/v2/url?u=http-3A__192.168.33.10-3A8080_web.rya_sparqlQuery.jsp&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=GKG-hoFSZ2TYl4AC0lKdAxUO-e0RYrb0f4xG78-iTKk&e= > <https://urldefense.proofpoint.com/v2/url?u=http-3A__192.168.33.10-3A8080_web.rya_sparqlQuery.jsp-20-3Chttp-3A__192.168.33.10-3A8080_web.rya_sparqlQuery.jsp&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=IItQnV_xkYh5f-Ra5sXdTCjAZiQFIwGz7IusIyxzMiQ&e= >> or  https://urldefense.proofpoint.com/v2/url?u=http-3A__accumulo-2Ddev-2Dbox-3A8080_web.rya_sparqlQuery.jsp&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=ub1GgIu_AR0EajR7B5fk42uxhFE5-wMhP3Xs1FOl55E&e=  <https://urldefense.proofpoint.com/v2/url?u=http-3A__accumulo-2Ddev-2Dbox-3A8080_web.rya_sparqlQuery.jsp&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=ub1GgIu_AR0EajR7B5fk42uxhFE5-wMhP3Xs1FOl55E&e= > <https://urldefense.proofpoint.com/v2/url?u=http-3A__accumulo-2Ddev-2Dbox-3A8080_web.rya_sparqlQuery.jsp-20-3Chttp-3A__accumulo-2Ddev-2Dbox-3A8080_web.rya_sparqlQuery.jsp&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=6k5ikWOzEaYnvE7iWAFauKdy8MqrBT6hBhONe17zxRM&e= >> [3] https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_sparqlQuery.jsp&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=aBnpn93MJG6rImK2aW-_P9nv4nzXfB3PU6XgQ4Mmfh0&e=  <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_sparqlQuery.jsp&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=aBnpn93MJG6rImK2aW-_P9nv4nzXfB3PU6XgQ4Mmfh0&e= > <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_sparqlQuery.jsp-20-3Chttp-3A__localhost-3A8080_web.rya_sparqlQuery.jsp&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=tUUJpUOvGDs0EA8Xg2BeEKF9o3r_-4RzIUnxHpxn2X0&e= >> [4] https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_loadrdf-3Fformat-3DN-2DTriples&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=f3Ox4kYYCVOGqBSFmpDBuChcs-jcehRqtgcS_bbiZAo&e=  <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_loadrdf-3Fformat-3DN-2DTriples&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=f3Ox4kYYCVOGqBSFmpDBuChcs-jcehRqtgcS_bbiZAo&e= > <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_loadrdf-3Fformat-3DN-2DTriples-20-3Chttp-3A__localhost-3A8080_web.rya_loadrdf-3Fformat-3DN-2DTriples&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=UrnCOfkEkPEMGtIju5LKq8tuV2kZpw36WKWnnMcHu5A&e= >> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu> <mailto:fyang1@umbc.edu <ma...@umbc.edu>>> wrote:
>>> >> Hi Aaron,
>>> >>
>>> >> Sorry to bother you again. I faced a new problem in loading RDF data process. Following the tutorial, I created loadrdf folder and N-Triples file $RDF_DATA, when I complied and run the java code, it gave the error message like :”java.io.IOException: Server returned HTTP response code: 500 for URL: https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_loadrdf_-3Fformat-3DN-2DTriples&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=_bd0KaV-qwTHIvOsrAWprlCTcn-6oyQZoDYmPtpYpyY&e=  <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_loadrdf_-3Fformat-3DN-2DTriples&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=_bd0KaV-qwTHIvOsrAWprlCTcn-6oyQZoDYmPtpYpyY&e= > <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_web.rya_loadrdf_-3Fformat-3DN-2DTriples-20-3Chttp-3A__localhost-3A8080_web.rya_loadrdf_-3Fformat-3DN-2DTriples&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYIwFQczSaL_WHX6lhyV4v-i9Y&s=7o5W4JiZ2CF5iVWl5ah8krHhTjF3yv7dgWuf3WSA5uo&e= >>” my tomcat host server’s URL is localhost and port number is 8080 by default.
>>> >>
>>> >> Also another question is about bulk load RDF data. There is an example code in the tutorial, I’ve tried to find the similar jar package named accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with this one, it said it’s not a valid jar.
>>> >>
>>> >> Please let me know if I misunderstood and did anything wrong with the tutorial, thank you very much!
>>> >>
>>> >> Bests,
>>> >>
>>> >> Fan
>>> >>
>>> >>
>>> >>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu> <mailto:mihalik@alum.mit.edu <ma...@alum.mit.edu>>> wrote:
>>> >>>
>>> >>
>>> >>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
>>> >>>
>>> >>> My response to your email this morning is below.
>>> >>>
>>> >>> ---------- Forwarded message ---------
>>> >>> From: Aaron D. Mihalik <mihalik@alum.mit.edu 
>>> >>> <ma...@alum.mit.edu> <mailto:mihalik@alum.mit.edu 
>>> >>> <ma...@alum.mit.edu>>>
>>> >>> Date: Thu, Nov 19, 2015 at 8:47 AM
>>> >>> Subject: Re: Maven Build Error
>>> >>> To: <dev@rya.incubator.apache.org 
>>> >>> <ma...@rya.incubator.apache.org> 
>>> >>> <mailto:dev@rya.incubator.apache.org 
>>> >>> <ma...@rya.incubator.apache.org>>>
>>> >>>
>>> >>>
>>> >>> Hey Fan!
>>> >>>
>>> >>> Thanks for downloading Rya and testing it out.
>>> >>>
>>> >>> It appears that you must use Maven 3 (for kinda a funny reason... it'll hit the apache repo by default), and it appears that there are some test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
>>> >>>
>>> >>> You should be able to build rya using this command (with maven 
>>> >>> 3): mvn clean install -DskipTests
>>> >>>
>>> >>> Regardless, we need to create an ticket to fix your broken test.  
>>> >>> Could you send out your test report?  Specifically, we're 
>>> >>> interested in : 
>>> >>> dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.Accumu
>>> >>> loRyaDAOTest.txt
>>> >>>
>>> >>> --Aaron
>>> >>>
>>> >>>
>>> >>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu> <mailto:fyang1@umbc.edu <ma...@umbc.edu>>> wrote:
>>> >>> Hi,
>>> >>>
>>> >>> My name is Fan Yang, I am a phd student in Information Systems Department, UMBC. Currently I am working on Rya project under the supervision of Dr. Adina. I faced a problem when I tried to reproduce the development environment on my virtual machine.
>>> >>>
>>> >>> When I built Rya project by Maven, it gave me some error report and same thing happened even I tried different versions of Maven. I am attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1 (log221.txt) and looking for some help. Thank you so much!
>>> >>>
>>> >>> My development environment is:
>>> >>>
>>> >>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit) Maven 
>>> >>> version: 3.3.3 Java version: OpenJDK Runtime Environment 
>>> >>> 1.7.0_79 Accumulo version: 1.6.1.2.2.4.2-2 Hadoop 
>>> >>> version:2.6.0.2.2.4.2-2
>>> >>>
>>> >>> Bests,
>>> >>>
>>> >>> Fan
>>> >>>
>>> >
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Dr. Adina Crainiceanu
>>> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.usna.edu_Use
>>> rs_cs_adina_&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&
>>> r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlYI
>>> wFQczSaL_WHX6lhyV4v-i9Y&s=u-3_2Mmc3CS7ArIh2WpFnfAVmv3H_2iS1m8SDi0lDO
>>> Q&e=  
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.usna.edu_Us
>>> ers_cs_adina_&d=BQIFaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10
>>> &r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=J9yBfPDXbRIkF_nTmlY
>>> IwFQczSaL_WHX6lhyV4v-i9Y&s=u-3_2Mmc3CS7ArIh2WpFnfAVmv3H_2iS1m8SDi0lD
>>> OQ&e= >
> 


Re: Maven Build Error

Posted by Fan Yang <fy...@umbc.edu>.
Yes! For some reason my VM cannot access dropbox so rya is not configured correctly. I am downloading the package and will let you know if it could work at this time. Thank you so much for the helps.

Bests,

Fan
> On Jan 12, 2016, at 11:17 PM, Aaron D. Mihalik <aa...@gmail.com> wrote:
> 
> It seems like some of the Rya files were not downloaded properly. Open the vagrant file and look for the line "echo "Downloading Rya"". Try working through those commands manually on your VMs. 
> 


Re: Maven Build Error

Posted by "Aaron D. Mihalik" <aa...@gmail.com>.
It seems like some of the Rya files were not downloaded properly. Open the vagrant file and look for the line "echo "Downloading Rya"". Try working through those commands manually on your VMs. 


Re: Maven Build Error

Posted by Fan Yang <fy...@umbc.edu>.
Hi Aaron,

There is no such files in these two directories. Actually I cannot access rya at the beginning, there is no "web.rya” folder under webapps. So I just download the rya project zip file and use maven to build it.

Bests,

Fan
> On Jan 12, 2016, at 11:00 PM, Aaron D. Mihalik <aa...@gmail.com> wrote:
> 
> I'm kinda worried that there is no create-RyaAccumuloSail.xsl.
> 
> Can you check to see if rya libs are installed in the OpenRDF Web apps?
> 
> run these two commands and see if you have any rya files in the two lib directories:
> 
> ls /var/lib/tomcat7/webapps/openrdf-sesame/WEB-INF/lib/rya*
> 
> ls /var/lib/tomcat7/webapps/openrdf-workbench/WEB-INF/lib/rya* 
> 
> Also, are you able to access the Rya web page at: http://rya-example-box:8080/web.rya/sparqlQuery.jsp <http://rya-example-box:8080/web.rya/sparqlQuery.jsp>
> 
> --Aaron
> 
> On Tue, Jan 12, 2016 at 10:23 PM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
> Hi Aaron,
> 
> I followed the steps you suggest and checked the folder “transformations”, there is still no such file named “create-RyaAccumuloSail.xsl”. I attach my screenshot of openrdf-workbench, those types listed are the ones I have in that folder. Thanks!
> 
> Bests,
> 
> Fan
> 
> 
>> On Jan 12, 2016, at 2:33 PM, Aaron D. Mihalik <aaron.mihalik@gmail.com <ma...@gmail.com>> wrote:
>> 
> 
>> You shouldn't have to make any changes... I've attache a screen shot of what you should see.
>> 
>> If you don't see "Rya Accumulo Store" try these steps:
>> 
>> Restart Tomcat
>> -- 1. Log into the vm (run: "ssh vagrant@rya-example-box" with pass: vagrant)
>> -- 2. switch to root (run: "su" with pass: vagrant)
>> -- 3. restart tomcat (run: "service tomcat7 restart")
>> -- 4. open the "new repository" page again and see if rya was added (new repo page: http://rya-example-box:8080/openrdf-workbench/repositories/NONE/create <http://rya-example-box:8080/openrdf-workbench/repositories/NONE/create>)
>> 
>> If that doesn't work, make sure that the openrdf-workbench transforms are correct:
>> The transforms are in this directory: /var/lib/tomcat7/webapps/openrdf-workbench/transformations/
>> 
>> -- 1. Verify that this file exists: create-RyaAccumuloSail.xsl
>> --- 2. Verify that create.xsl has been updated for rya.  (run: "cat create.xsl | grep Rya" and make sure there's some stuff there.)
>> 
>> Thanks for testing this out.  Let me know if this resolves your issues.
>> 
>> --Aaron
>> 
>> 
>> 
>> 
>> On Tue, Jan 12, 2016 at 1:04 PM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>> Hi Aaron,
>> 
>> Thank you so much for your help! I followed the instructions and created the VM. Everything works fine except one thing I am not very clear: in “connecting to Rya via OpenRDF Workbench” step, I cannot find “Rya Accumulo Store” in “Type” option. I am wondering if I should make some configurations in Rya and Accumulo. 
>> 
>> Bests,
>> 
>> Fan
>> 
>>> On Jan 1, 2016, at 10:54 PM, Aaron D. Mihalik <aaron.mihalik@gmail.com <ma...@gmail.com>> wrote:
>>> 
>>> Fan,
>>> 
>>> I'm sorry about the delay, but I finally got the Rya/Vagrant/OpenRDF Workbench VM into a good spot.  Can you test out the instructions at:
>>> 
>>> https://github.com/amihalik/incubator-rya/blob/RYA-4/extras/vagrantExample/src/main/vagrant/readme.md <https://github.com/amihalik/incubator-rya/blob/RYA-4/extras/vagrantExample/src/main/vagrant/readme.md>
>>> 
>>> Once you run this VM, it should be straightforward to upload and query your data through OpenRDF Workbench.
>>> 
>>> For instance, once you connect Rya and OpenRDF Workbench, you can open the Workbench, click on "Add", and cut-and-paste your ntriples into the "RDF Content" field.
>>> 
>>> Then you can click on "Query" and run this SPARQL query:  
>>> 
>>> select * where { <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> ?p ?o. }
>>> 
>>> --Aaron
>>> 
>>> On Thu, Dec 17, 2015 at 1:00 PM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>>> Hi Dr. Adina,
>>> 
>>> I named my $RDF_DATA file as ntriplesFile and put it under the folder same as Java code’s. I tried to delete the empty loadrdf file and re-run the code, the same error message was showed up. The error log containing the command I’m using, loadrdf java code and ntripleFile are attached in this email. Thanks!
>>> 
>>> Bests,
>>> 
>>> Fan
>>> 
>>>  
>>>> On Dec 16, 2015, at 2:55 PM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>>>> 
>>>> Hi Dr. Adina,
>>>> 
>>>> The one I’m using is an empty file. Cause when the war package is deployed, there is no such file named loadrdf under the certain folder. The n-Triples file I’m using is the one listed on the tutorial, the content is :
>>>> 
>>>> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>> <http://mynamespace/ProductType <http://mynamespace/ProductType>> .
>>>> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> <http://www.w3.org/2000/01/rdf-schema#label <http://www.w3.org/2000/01/rdf-schema#label>> "Thing" .
>>>> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> <http://purl.org/dc/elements/1.1/publisher <http://purl.org/dc/elements/1.1/publisher>> <http://mynamespace/Publisher1 <http://mynamespace/Publisher1>> .
>>>> Bests,
>>>> 
>>>> Fan
>>>>> On Dec 16, 2015, at 2:23 PM, Adina Crainiceanu <adina@usna.edu <ma...@usna.edu>> wrote:
>>>>> 
>>>>> Fan,
>>>>> 
>>>>> Can you please send the rdf file you are trying to load? Maybe that is the problem.
>>>>> 
>>>>> Adina
>>>>> 
>>>>> On Thu, Dec 3, 2015 at 12:44 PM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>>>>> Hi Aaron,
>>>>> 
>>>>> There is an additional information you may need: Once I checked the web.rya folder under the webapps directory, there is no such file named loadrdf or queryrdf, so I created empty ones. Maybe that causes the error. Could you check your webapps directory to see if those files contain some certain scripts? Thank you so much!
>>>>> 
>>>>> Bests,
>>>>> 
>>>>> Fan
>>>>> > On Dec 3, 2015, at 3:15 AM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>>>>> >
>>>>> > Hi Aaron,
>>>>> >
>>>>> > Thank you so much for your help! I reproduced the Vagrant VM successfully by following your instruction. Everything is working except loading data part. Even I fixed the “/“ error in the code I still face the same HTTP 500 error. I capture the error message when I load the link [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples> <http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples>> on my browser and copy the tomcat log file to you.
>>>>> >
>>>>> > Bests,
>>>>> >
>>>>> > Fan
>>>>> >
>>>>> > <catalina.2015-12-03.log>
>>>>> > <error log>
>>>>> >
>>>>> >> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <aaron.mihalik@gmail.com <ma...@gmail.com> <mailto:aaron.mihalik@gmail.com <ma...@gmail.com>>> wrote:
>>>>> >>
>>>>> >> Hi Fan,
>>>>> >>
>>>>> >> The tutorial is a bit dated, so it might be confusing/incorrect.
>>>>> >>
>>>>> >> You have a couple options:
>>>>> >>
>>>>> >> 1. You could start using the Vagrant vm that I'm putting together as a "Rya Quickstart VM".
>>>>> >>
>>>>> >> It's a bit rough right now, and it doesn't have Hadoop or MapReduce (so you can't do the bulk load), but it does have the script you mentioned for loading N-Triples.  An early copy of the Vagrantfile is here [1].
>>>>> >>
>>>>> >> It'll take about 30 minutes to build the VM, but once you do, you'll have the rya web endpoint up and running here [2] and you can ssh into the box to load data.  Once you ssh into the machine, you can run 'java LoadDataServletRun' to load n-triples files.  Infact, you that script will take a "batchSize" parameter to split a large ntriples into small loads.
>>>>> >>
>>>>> >> 2. We can help you debug your current vm.
>>>>> >>
>>>>> >> The first step would be to try to hit this webpage [3] and see if the sparql query page loads.  Also note that the URL you provided has an extra "/" in it and you should try [4].
>>>>> >>
>>>>> >> If those load properly, then the issue might be the LoadDataServletRun file itself (I haven't tried the one you mentioned), but you could try the new one located at the bottom of the Vagrant file.
>>>>> >>
>>>>> >> If those links do not load properly, please send us your tomcat logs and we'll take a look to see what's up with tomcat.
>>>>> >>
>>>>> >> --Aaron
>>>>> >>
>>>>> >> [1] https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile> <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile>>
>>>>> >> [2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp> <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp>> or  http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp> <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp>>
>>>>> >> [3] http://localhost:8080/web.rya/sparqlQuery.jsp <http://localhost:8080/web.rya/sparqlQuery.jsp> <http://localhost:8080/web.rya/sparqlQuery.jsp <http://localhost:8080/web.rya/sparqlQuery.jsp>>
>>>>> >> [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples> <http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples>>
>>>>> >> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu> <mailto:fyang1@umbc.edu <ma...@umbc.edu>>> wrote:
>>>>> >> Hi Aaron,
>>>>> >>
>>>>> >> Sorry to bother you again. I faced a new problem in loading RDF data process. Following the tutorial, I created loadrdf folder and N-Triples file $RDF_DATA, when I complied and run the java code, it gave the error message like :”java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples <http://localhost:8080/web.rya/loadrdf/?format=N-Triples> <http://localhost:8080/web.rya/loadrdf/?format=N-Triples <http://localhost:8080/web.rya/loadrdf/?format=N-Triples>>” my tomcat host server’s URL is localhost and port number is 8080 by default.
>>>>> >>
>>>>> >> Also another question is about bulk load RDF data. There is an example code in the tutorial, I’ve tried to find the similar jar package named accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with this one, it said it’s not a valid jar.
>>>>> >>
>>>>> >> Please let me know if I misunderstood and did anything wrong with the tutorial, thank you very much!
>>>>> >>
>>>>> >> Bests,
>>>>> >>
>>>>> >> Fan
>>>>> >>
>>>>> >>
>>>>> >>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu> <mailto:mihalik@alum.mit.edu <ma...@alum.mit.edu>>> wrote:
>>>>> >>>
>>>>> >>
>>>>> >>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
>>>>> >>>
>>>>> >>> My response to your email this morning is below.
>>>>> >>>
>>>>> >>> ---------- Forwarded message ---------
>>>>> >>> From: Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu> <mailto:mihalik@alum.mit.edu <ma...@alum.mit.edu>>>
>>>>> >>> Date: Thu, Nov 19, 2015 at 8:47 AM
>>>>> >>> Subject: Re: Maven Build Error
>>>>> >>> To: <dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org> <mailto:dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org>>>
>>>>> >>>
>>>>> >>>
>>>>> >>> Hey Fan!
>>>>> >>>
>>>>> >>> Thanks for downloading Rya and testing it out.
>>>>> >>>
>>>>> >>> It appears that you must use Maven 3 (for kinda a funny reason... it'll hit the apache repo by default), and it appears that there are some test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
>>>>> >>>
>>>>> >>> You should be able to build rya using this command (with maven 3): mvn clean install -DskipTests
>>>>> >>>
>>>>> >>> Regardless, we need to create an ticket to fix your broken test.  Could you send out your test report?  Specifically, we're interested in : dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
>>>>> >>>
>>>>> >>> --Aaron
>>>>> >>>
>>>>> >>>
>>>>> >>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu> <mailto:fyang1@umbc.edu <ma...@umbc.edu>>> wrote:
>>>>> >>> Hi,
>>>>> >>>
>>>>> >>> My name is Fan Yang, I am a phd student in Information Systems Department, UMBC. Currently I am working on Rya project under the supervision of Dr. Adina. I faced a problem when I tried to reproduce the development environment on my virtual machine.
>>>>> >>>
>>>>> >>> When I built Rya project by Maven, it gave me some error report and same thing happened even I tried different versions of Maven. I am attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1 (log221.txt) and looking for some help. Thank you so much!
>>>>> >>>
>>>>> >>> My development environment is:
>>>>> >>>
>>>>> >>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
>>>>> >>> Maven version: 3.3.3
>>>>> >>> Java version: OpenJDK Runtime Environment 1.7.0_79
>>>>> >>> Accumulo version: 1.6.1.2.2.4.2-2
>>>>> >>> Hadoop version:2.6.0.2.2.4.2-2
>>>>> >>>
>>>>> >>> Bests,
>>>>> >>>
>>>>> >>> Fan
>>>>> >>>
>>>>> >
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> -- 
>>>>> Dr. Adina Crainiceanu
>>>>> http://www.usna.edu/Users/cs/adina/ <http://www.usna.edu/Users/cs/adina/>
>>> 
>> 
> 
>> <pasted1.png>
> 
> <VirtualBox_rya-example-box_12_01_2016_22_16_33.png><VirtualBox_rya-example-box_12_01_2016_22_16_33.png>


Re: Maven Build Error

Posted by "Aaron D. Mihalik" <aa...@gmail.com>.
You shouldn't have to make any changes... I've attache a screen shot of
what you should see.

If you don't see "Rya Accumulo Store" try these steps:

Restart Tomcat
-- 1. Log into the vm (run: "ssh vagrant@rya-example-box" with pass:
vagrant)
-- 2. switch to root (run: "su" with pass: vagrant)
-- 3. restart tomcat (run: "service tomcat7 restart")
-- 4. open the "new repository" page again and see if rya was added (new
repo page:
http://rya-example-box:8080/openrdf-workbench/repositories/NONE/create)

If that doesn't work, make sure that the openrdf-workbench transforms are
correct:
The transforms are in this directory:
/var/lib/tomcat7/webapps/openrdf-workbench/transformations/

-- 1. Verify that this file exists: create-RyaAccumuloSail.xsl
--- 2. Verify that create.xsl has been updated for rya.  (run: "cat
create.xsl | grep Rya" and make sure there's some stuff there.)

Thanks for testing this out.  Let me know if this resolves your issues.

--Aaron




On Tue, Jan 12, 2016 at 1:04 PM Fan Yang <fy...@umbc.edu> wrote:

> Hi Aaron,
>
> Thank you so much for your help! I followed the instructions and created
> the VM. Everything works fine except one thing I am not very clear: in
> “connecting to Rya via OpenRDF Workbench” step, I cannot find “Rya Accumulo
> Store” in “Type” option. I am wondering if I should make some
> configurations in Rya and Accumulo.
>
> Bests,
>
> Fan
>
> On Jan 1, 2016, at 10:54 PM, Aaron D. Mihalik <aa...@gmail.com>
> wrote:
>
> Fan,
>
> I'm sorry about the delay, but I finally got the Rya/Vagrant/OpenRDF
> Workbench VM into a good spot.  Can you test out the instructions at:
>
>
> https://github.com/amihalik/incubator-rya/blob/RYA-4/extras/vagrantExample/src/main/vagrant/readme.md
>
> Once you run this VM, it should be straightforward to upload and query
> your data through OpenRDF Workbench.
>
> For instance, once you connect Rya and OpenRDF Workbench, you can open the
> Workbench, click on "Add", and cut-and-paste your ntriples into the "RDF
> Content" field.
>
> Then you can click on "Query" and run this SPARQL query:
>
> select * where { <http://mynamespace/ProductType1> ?p ?o. }
>
> --Aaron
>
> On Thu, Dec 17, 2015 at 1:00 PM Fan Yang <fy...@umbc.edu> wrote:
>
>> Hi Dr. Adina,
>>
>> I named my $RDF_DATA file as ntriplesFile and put it under the folder
>> same as Java code’s. I tried to delete the empty loadrdf file and re-run
>> the code, the same error message was showed up. The error log containing
>> the command I’m using, loadrdf java code and ntripleFile are attached in
>> this email. Thanks!
>>
>> Bests,
>>
>> Fan
>>
>>
>>
>> On Dec 16, 2015, at 2:55 PM, Fan Yang <fy...@umbc.edu> wrote:
>>
>> Hi Dr. Adina,
>>
>> The one I’m using is an empty file. Cause when the war package is
>> deployed, there is no such file named loadrdf under the certain folder. The
>> n-Triples file I’m using is the one listed on the tutorial, the content is :
>>
>> <http://mynamespace/ProductType1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://mynamespace/ProductType> .
>> <http://mynamespace/ProductType1> <http://www.w3.org/2000/01/rdf-schema#label> "Thing" .
>> <http://mynamespace/ProductType1> <http://purl.org/dc/elements/1.1/publisher> <http://mynamespace/Publisher1> .
>>
>> Bests,
>>
>> Fan
>>
>> On Dec 16, 2015, at 2:23 PM, Adina Crainiceanu <ad...@usna.edu> wrote:
>>
>> Fan,
>>
>> Can you please send the rdf file you are trying to load? Maybe that is
>> the problem.
>>
>> Adina
>>
>> On Thu, Dec 3, 2015 at 12:44 PM, Fan Yang <fy...@umbc.edu> wrote:
>>
>>> Hi Aaron,
>>>
>>> There is an additional information you may need: Once I checked the
>>> web.rya folder under the webapps directory, there is no such file named
>>> loadrdf or queryrdf, so I created empty ones. Maybe that causes the error.
>>> Could you check your webapps directory to see if those files contain some
>>> certain scripts? Thank you so much!
>>>
>>> Bests,
>>>
>>> Fan
>>> > On Dec 3, 2015, at 3:15 AM, Fan Yang <fy...@umbc.edu> wrote:
>>> >
>>> > Hi Aaron,
>>> >
>>> > Thank you so much for your help! I reproduced the Vagrant VM
>>> successfully by following your instruction. Everything is working except
>>> loading data part. Even I fixed the “/“ error in the code I still face the
>>> same HTTP 500 error. I capture the error message when I load the link [4]
>>> http://localhost:8080/web.rya/loadrdf?format=N-Triples <
>>> http://localhost:8080/web.rya/loadrdf?format=N-Triples> on my browser
>>> and copy the tomcat log file to you.
>>> >
>>> > Bests,
>>> >
>>> > Fan
>>> >
>>> > <catalina.2015-12-03.log>
>>> > <error log>
>>> >
>>> >> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <aaron.mihalik@gmail.com
>>> <ma...@gmail.com>> wrote:
>>> >>
>>> >> Hi Fan,
>>> >>
>>> >> The tutorial is a bit dated, so it might be confusing/incorrect.
>>> >>
>>> >> You have a couple options:
>>> >>
>>> >> 1. You could start using the Vagrant vm that I'm putting together as
>>> a "Rya Quickstart VM".
>>> >>
>>> >> It's a bit rough right now, and it doesn't have Hadoop or MapReduce
>>> (so you can't do the bulk load), but it does have the script you mentioned
>>> for loading N-Triples.  An early copy of the Vagrantfile is here [1].
>>> >>
>>> >> It'll take about 30 minutes to build the VM, but once you do, you'll
>>> have the rya web endpoint up and running here [2] and you can ssh into the
>>> box to load data.  Once you ssh into the machine, you can run 'java
>>> LoadDataServletRun' to load n-triples files.  Infact, you that script will
>>> take a "batchSize" parameter to split a large ntriples into small loads.
>>> >>
>>> >> 2. We can help you debug your current vm.
>>> >>
>>> >> The first step would be to try to hit this webpage [3] and see if the
>>> sparql query page loads.  Also note that the URL you provided has an extra
>>> "/" in it and you should try [4].
>>> >>
>>> >> If those load properly, then the issue might be the
>>> LoadDataServletRun file itself (I haven't tried the one you mentioned), but
>>> you could try the new one located at the bottom of the Vagrant file.
>>> >>
>>> >> If those links do not load properly, please send us your tomcat logs
>>> and we'll take a look to see what's up with tomcat.
>>> >>
>>> >> --Aaron
>>> >>
>>> >> [1]
>>> https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile
>>> <
>>> https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile
>>> >
>>> >> [2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <
>>> http://192.168.33.10:8080/web.rya/sparqlQuery.jsp> or
>>> http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <
>>> http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp>
>>> >> [3] http://localhost:8080/web.rya/sparqlQuery.jsp <
>>> http://localhost:8080/web.rya/sparqlQuery.jsp>
>>> >> [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <
>>> http://localhost:8080/web.rya/loadrdf?format=N-Triples>
>>> >> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fyang1@umbc.edu <mailto:
>>> fyang1@umbc.edu>> wrote:
>>> >> Hi Aaron,
>>> >>
>>> >> Sorry to bother you again. I faced a new problem in loading RDF data
>>> process. Following the tutorial, I created loadrdf folder and N-Triples
>>> file $RDF_DATA, when I complied and run the java code, it gave the error
>>> message like :”java.io.IOException: Server returned HTTP response code: 500
>>> for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples <
>>> http://localhost:8080/web.rya/loadrdf/?format=N-Triples>” my tomcat
>>> host server’s URL is localhost and port number is 8080 by default.
>>> >>
>>> >> Also another question is about bulk load RDF data. There is an
>>> example code in the tutorial, I’ve tried to find the similar jar package
>>> named accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I
>>> could found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the
>>> code with this one, it said it’s not a valid jar.
>>> >>
>>> >> Please let me know if I misunderstood and did anything wrong with the
>>> tutorial, thank you very much!
>>> >>
>>> >> Bests,
>>> >>
>>> >> Fan
>>> >>
>>> >>
>>> >>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mihalik@alum.mit.edu
>>> <ma...@alum.mit.edu>> wrote:
>>> >>>
>>> >>
>>> >>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
>>> >>>
>>> >>> My response to your email this morning is below.
>>> >>>
>>> >>> ---------- Forwarded message ---------
>>> >>> From: Aaron D. Mihalik <mihalik@alum.mit.edu <mailto:
>>> mihalik@alum.mit.edu>>
>>> >>> Date: Thu, Nov 19, 2015 at 8:47 AM
>>> >>> Subject: Re: Maven Build Error
>>> >>> To: <dev@rya.incubator.apache.org <mailto:
>>> dev@rya.incubator.apache.org>>
>>> >>>
>>> >>>
>>> >>> Hey Fan!
>>> >>>
>>> >>> Thanks for downloading Rya and testing it out.
>>> >>>
>>> >>> It appears that you must use Maven 3 (for kinda a funny reason...
>>> it'll hit the apache repo by default), and it appears that there are some
>>> test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
>>> >>>
>>> >>> You should be able to build rya using this command (with maven 3):
>>> mvn clean install -DskipTests
>>> >>>
>>> >>> Regardless, we need to create an ticket to fix your broken test.
>>> Could you send out your test report?  Specifically, we're interested in :
>>> dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
>>> >>>
>>> >>> --Aaron
>>> >>>
>>> >>>
>>> >>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <mailto:
>>> fyang1@umbc.edu>> wrote:
>>> >>> Hi,
>>> >>>
>>> >>> My name is Fan Yang, I am a phd student in Information Systems
>>> Department, UMBC. Currently I am working on Rya project under the
>>> supervision of Dr. Adina. I faced a problem when I tried to reproduce the
>>> development environment on my virtual machine.
>>> >>>
>>> >>> When I built Rya project by Maven, it gave me some error report and
>>> same thing happened even I tried different versions of Maven. I am
>>> attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven
>>> 2.2.1 (log221.txt) and looking for some help. Thank you so much!
>>> >>>
>>> >>> My development environment is:
>>> >>>
>>> >>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
>>> >>> Maven version: 3.3.3
>>> >>> Java version: OpenJDK Runtime Environment 1.7.0_79
>>> >>> Accumulo version: 1.6.1.2.2.4.2-2
>>> >>> Hadoop version:2.6.0.2.2.4.2-2
>>> >>>
>>> >>> Bests,
>>> >>>
>>> >>> Fan
>>> >>>
>>> >
>>>
>>>
>>
>>
>> --
>> Dr. Adina Crainiceanu
>> http://www.usna.edu/Users/cs/adina/
>>
>>
>>
>>
>

Re: Maven Build Error

Posted by Fan Yang <fy...@umbc.edu>.
Hi Aaron,

Thank you so much for your help! I followed the instructions and created the VM. Everything works fine except one thing I am not very clear: in “connecting to Rya via OpenRDF Workbench” step, I cannot find “Rya Accumulo Store” in “Type” option. I am wondering if I should make some configurations in Rya and Accumulo. 

Bests,

Fan
> On Jan 1, 2016, at 10:54 PM, Aaron D. Mihalik <aa...@gmail.com> wrote:
> 
> Fan,
> 
> I'm sorry about the delay, but I finally got the Rya/Vagrant/OpenRDF Workbench VM into a good spot.  Can you test out the instructions at:
> 
> https://github.com/amihalik/incubator-rya/blob/RYA-4/extras/vagrantExample/src/main/vagrant/readme.md <https://github.com/amihalik/incubator-rya/blob/RYA-4/extras/vagrantExample/src/main/vagrant/readme.md>
> 
> Once you run this VM, it should be straightforward to upload and query your data through OpenRDF Workbench.
> 
> For instance, once you connect Rya and OpenRDF Workbench, you can open the Workbench, click on "Add", and cut-and-paste your ntriples into the "RDF Content" field.
> 
> Then you can click on "Query" and run this SPARQL query:  
> 
> select * where { <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> ?p ?o. }
> 
> --Aaron
> 
> On Thu, Dec 17, 2015 at 1:00 PM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
> Hi Dr. Adina,
> 
> I named my $RDF_DATA file as ntriplesFile and put it under the folder same as Java code’s. I tried to delete the empty loadrdf file and re-run the code, the same error message was showed up. The error log containing the command I’m using, loadrdf java code and ntripleFile are attached in this email. Thanks!
> 
> Bests,
> 
> Fan
> 
>  
>> On Dec 16, 2015, at 2:55 PM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>> 
>> Hi Dr. Adina,
>> 
>> The one I’m using is an empty file. Cause when the war package is deployed, there is no such file named loadrdf under the certain folder. The n-Triples file I’m using is the one listed on the tutorial, the content is :
>> 
>> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>> <http://mynamespace/ProductType <http://mynamespace/ProductType>> .
>> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> <http://www.w3.org/2000/01/rdf-schema#label <http://www.w3.org/2000/01/rdf-schema#label>> "Thing" .
>> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> <http://purl.org/dc/elements/1.1/publisher <http://purl.org/dc/elements/1.1/publisher>> <http://mynamespace/Publisher1 <http://mynamespace/Publisher1>> .
>> Bests,
>> 
>> Fan
>>> On Dec 16, 2015, at 2:23 PM, Adina Crainiceanu <adina@usna.edu <ma...@usna.edu>> wrote:
>>> 
>>> Fan,
>>> 
>>> Can you please send the rdf file you are trying to load? Maybe that is the problem.
>>> 
>>> Adina
>>> 
>>> On Thu, Dec 3, 2015 at 12:44 PM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>>> Hi Aaron,
>>> 
>>> There is an additional information you may need: Once I checked the web.rya folder under the webapps directory, there is no such file named loadrdf or queryrdf, so I created empty ones. Maybe that causes the error. Could you check your webapps directory to see if those files contain some certain scripts? Thank you so much!
>>> 
>>> Bests,
>>> 
>>> Fan
>>> > On Dec 3, 2015, at 3:15 AM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>>> >
>>> > Hi Aaron,
>>> >
>>> > Thank you so much for your help! I reproduced the Vagrant VM successfully by following your instruction. Everything is working except loading data part. Even I fixed the “/“ error in the code I still face the same HTTP 500 error. I capture the error message when I load the link [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples> <http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples>> on my browser and copy the tomcat log file to you.
>>> >
>>> > Bests,
>>> >
>>> > Fan
>>> >
>>> > <catalina.2015-12-03.log>
>>> > <error log>
>>> >
>>> >> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <aaron.mihalik@gmail.com <ma...@gmail.com> <mailto:aaron.mihalik@gmail.com <ma...@gmail.com>>> wrote:
>>> >>
>>> >> Hi Fan,
>>> >>
>>> >> The tutorial is a bit dated, so it might be confusing/incorrect.
>>> >>
>>> >> You have a couple options:
>>> >>
>>> >> 1. You could start using the Vagrant vm that I'm putting together as a "Rya Quickstart VM".
>>> >>
>>> >> It's a bit rough right now, and it doesn't have Hadoop or MapReduce (so you can't do the bulk load), but it does have the script you mentioned for loading N-Triples.  An early copy of the Vagrantfile is here [1].
>>> >>
>>> >> It'll take about 30 minutes to build the VM, but once you do, you'll have the rya web endpoint up and running here [2] and you can ssh into the box to load data.  Once you ssh into the machine, you can run 'java LoadDataServletRun' to load n-triples files.  Infact, you that script will take a "batchSize" parameter to split a large ntriples into small loads.
>>> >>
>>> >> 2. We can help you debug your current vm.
>>> >>
>>> >> The first step would be to try to hit this webpage [3] and see if the sparql query page loads.  Also note that the URL you provided has an extra "/" in it and you should try [4].
>>> >>
>>> >> If those load properly, then the issue might be the LoadDataServletRun file itself (I haven't tried the one you mentioned), but you could try the new one located at the bottom of the Vagrant file.
>>> >>
>>> >> If those links do not load properly, please send us your tomcat logs and we'll take a look to see what's up with tomcat.
>>> >>
>>> >> --Aaron
>>> >>
>>> >> [1] https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile> <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile>>
>>> >> [2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp> <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp>> or  http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp> <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp>>
>>> >> [3] http://localhost:8080/web.rya/sparqlQuery.jsp <http://localhost:8080/web.rya/sparqlQuery.jsp> <http://localhost:8080/web.rya/sparqlQuery.jsp <http://localhost:8080/web.rya/sparqlQuery.jsp>>
>>> >> [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples> <http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples>>
>>> >> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu> <mailto:fyang1@umbc.edu <ma...@umbc.edu>>> wrote:
>>> >> Hi Aaron,
>>> >>
>>> >> Sorry to bother you again. I faced a new problem in loading RDF data process. Following the tutorial, I created loadrdf folder and N-Triples file $RDF_DATA, when I complied and run the java code, it gave the error message like :”java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples <http://localhost:8080/web.rya/loadrdf/?format=N-Triples> <http://localhost:8080/web.rya/loadrdf/?format=N-Triples <http://localhost:8080/web.rya/loadrdf/?format=N-Triples>>” my tomcat host server’s URL is localhost and port number is 8080 by default.
>>> >>
>>> >> Also another question is about bulk load RDF data. There is an example code in the tutorial, I’ve tried to find the similar jar package named accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with this one, it said it’s not a valid jar.
>>> >>
>>> >> Please let me know if I misunderstood and did anything wrong with the tutorial, thank you very much!
>>> >>
>>> >> Bests,
>>> >>
>>> >> Fan
>>> >>
>>> >>
>>> >>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu> <mailto:mihalik@alum.mit.edu <ma...@alum.mit.edu>>> wrote:
>>> >>>
>>> >>
>>> >>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
>>> >>>
>>> >>> My response to your email this morning is below.
>>> >>>
>>> >>> ---------- Forwarded message ---------
>>> >>> From: Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu> <mailto:mihalik@alum.mit.edu <ma...@alum.mit.edu>>>
>>> >>> Date: Thu, Nov 19, 2015 at 8:47 AM
>>> >>> Subject: Re: Maven Build Error
>>> >>> To: <dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org> <mailto:dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org>>>
>>> >>>
>>> >>>
>>> >>> Hey Fan!
>>> >>>
>>> >>> Thanks for downloading Rya and testing it out.
>>> >>>
>>> >>> It appears that you must use Maven 3 (for kinda a funny reason... it'll hit the apache repo by default), and it appears that there are some test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
>>> >>>
>>> >>> You should be able to build rya using this command (with maven 3): mvn clean install -DskipTests
>>> >>>
>>> >>> Regardless, we need to create an ticket to fix your broken test.  Could you send out your test report?  Specifically, we're interested in : dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
>>> >>>
>>> >>> --Aaron
>>> >>>
>>> >>>
>>> >>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu> <mailto:fyang1@umbc.edu <ma...@umbc.edu>>> wrote:
>>> >>> Hi,
>>> >>>
>>> >>> My name is Fan Yang, I am a phd student in Information Systems Department, UMBC. Currently I am working on Rya project under the supervision of Dr. Adina. I faced a problem when I tried to reproduce the development environment on my virtual machine.
>>> >>>
>>> >>> When I built Rya project by Maven, it gave me some error report and same thing happened even I tried different versions of Maven. I am attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1 (log221.txt) and looking for some help. Thank you so much!
>>> >>>
>>> >>> My development environment is:
>>> >>>
>>> >>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
>>> >>> Maven version: 3.3.3
>>> >>> Java version: OpenJDK Runtime Environment 1.7.0_79
>>> >>> Accumulo version: 1.6.1.2.2.4.2-2
>>> >>> Hadoop version:2.6.0.2.2.4.2-2
>>> >>>
>>> >>> Bests,
>>> >>>
>>> >>> Fan
>>> >>>
>>> >
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> Dr. Adina Crainiceanu
>>> http://www.usna.edu/Users/cs/adina/ <http://www.usna.edu/Users/cs/adina/>
> 


Re: Maven Build Error

Posted by "Aaron D. Mihalik" <aa...@gmail.com>.
Fan,

I'm sorry about the delay, but I finally got the Rya/Vagrant/OpenRDF
Workbench VM into a good spot.  Can you test out the instructions at:

https://github.com/amihalik/incubator-rya/blob/RYA-4/extras/vagrantExample/src/main/vagrant/readme.md

Once you run this VM, it should be straightforward to upload and query your
data through OpenRDF Workbench.

For instance, once you connect Rya and OpenRDF Workbench, you can open the
Workbench, click on "Add", and cut-and-paste your ntriples into the "RDF
Content" field.

Then you can click on "Query" and run this SPARQL query:

select * where { <http://mynamespace/ProductType1> ?p ?o. }

--Aaron

On Thu, Dec 17, 2015 at 1:00 PM Fan Yang <fy...@umbc.edu> wrote:

> Hi Dr. Adina,
>
> I named my $RDF_DATA file as ntriplesFile and put it under the folder same
> as Java code’s. I tried to delete the empty loadrdf file and re-run the
> code, the same error message was showed up. The error log containing the
> command I’m using, loadrdf java code and ntripleFile are attached in this
> email. Thanks!
>
> Bests,
>
> Fan
>
>
>
> On Dec 16, 2015, at 2:55 PM, Fan Yang <fy...@umbc.edu> wrote:
>
> Hi Dr. Adina,
>
> The one I’m using is an empty file. Cause when the war package is
> deployed, there is no such file named loadrdf under the certain folder. The
> n-Triples file I’m using is the one listed on the tutorial, the content is :
>
> <http://mynamespace/ProductType1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://mynamespace/ProductType> .
> <http://mynamespace/ProductType1> <http://www.w3.org/2000/01/rdf-schema#label> "Thing" .
> <http://mynamespace/ProductType1> <http://purl.org/dc/elements/1.1/publisher> <http://mynamespace/Publisher1> .
>
> Bests,
>
> Fan
>
> On Dec 16, 2015, at 2:23 PM, Adina Crainiceanu <ad...@usna.edu> wrote:
>
> Fan,
>
> Can you please send the rdf file you are trying to load? Maybe that is the
> problem.
>
> Adina
>
> On Thu, Dec 3, 2015 at 12:44 PM, Fan Yang <fy...@umbc.edu> wrote:
>
>> Hi Aaron,
>>
>> There is an additional information you may need: Once I checked the
>> web.rya folder under the webapps directory, there is no such file named
>> loadrdf or queryrdf, so I created empty ones. Maybe that causes the error.
>> Could you check your webapps directory to see if those files contain some
>> certain scripts? Thank you so much!
>>
>> Bests,
>>
>> Fan
>> > On Dec 3, 2015, at 3:15 AM, Fan Yang <fy...@umbc.edu> wrote:
>> >
>> > Hi Aaron,
>> >
>> > Thank you so much for your help! I reproduced the Vagrant VM
>> successfully by following your instruction. Everything is working except
>> loading data part. Even I fixed the “/“ error in the code I still face the
>> same HTTP 500 error. I capture the error message when I load the link [4]
>> http://localhost:8080/web.rya/loadrdf?format=N-Triples <
>> http://localhost:8080/web.rya/loadrdf?format=N-Triples> on my browser
>> and copy the tomcat log file to you.
>> >
>> > Bests,
>> >
>> > Fan
>> >
>> > <catalina.2015-12-03.log>
>> > <error log>
>> >
>> >> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <aaron.mihalik@gmail.com
>> <ma...@gmail.com>> wrote:
>> >>
>> >> Hi Fan,
>> >>
>> >> The tutorial is a bit dated, so it might be confusing/incorrect.
>> >>
>> >> You have a couple options:
>> >>
>> >> 1. You could start using the Vagrant vm that I'm putting together as a
>> "Rya Quickstart VM".
>> >>
>> >> It's a bit rough right now, and it doesn't have Hadoop or MapReduce
>> (so you can't do the bulk load), but it does have the script you mentioned
>> for loading N-Triples.  An early copy of the Vagrantfile is here [1].
>> >>
>> >> It'll take about 30 minutes to build the VM, but once you do, you'll
>> have the rya web endpoint up and running here [2] and you can ssh into the
>> box to load data.  Once you ssh into the machine, you can run 'java
>> LoadDataServletRun' to load n-triples files.  Infact, you that script will
>> take a "batchSize" parameter to split a large ntriples into small loads.
>> >>
>> >> 2. We can help you debug your current vm.
>> >>
>> >> The first step would be to try to hit this webpage [3] and see if the
>> sparql query page loads.  Also note that the URL you provided has an extra
>> "/" in it and you should try [4].
>> >>
>> >> If those load properly, then the issue might be the LoadDataServletRun
>> file itself (I haven't tried the one you mentioned), but you could try the
>> new one located at the bottom of the Vagrant file.
>> >>
>> >> If those links do not load properly, please send us your tomcat logs
>> and we'll take a look to see what's up with tomcat.
>> >>
>> >> --Aaron
>> >>
>> >> [1]
>> https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile
>> <
>> https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile
>> >
>> >> [2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <
>> http://192.168.33.10:8080/web.rya/sparqlQuery.jsp> or
>> http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <
>> http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp>
>> >> [3] http://localhost:8080/web.rya/sparqlQuery.jsp <
>> http://localhost:8080/web.rya/sparqlQuery.jsp>
>> >> [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <
>> http://localhost:8080/web.rya/loadrdf?format=N-Triples>
>> >> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fyang1@umbc.edu <mailto:
>> fyang1@umbc.edu>> wrote:
>> >> Hi Aaron,
>> >>
>> >> Sorry to bother you again. I faced a new problem in loading RDF data
>> process. Following the tutorial, I created loadrdf folder and N-Triples
>> file $RDF_DATA, when I complied and run the java code, it gave the error
>> message like :”java.io.IOException: Server returned HTTP response code: 500
>> for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples <
>> http://localhost:8080/web.rya/loadrdf/?format=N-Triples>” my tomcat host
>> server’s URL is localhost and port number is 8080 by default.
>> >>
>> >> Also another question is about bulk load RDF data. There is an example
>> code in the tutorial, I’ve tried to find the similar jar package named
>> accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could
>> found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with
>> this one, it said it’s not a valid jar.
>> >>
>> >> Please let me know if I misunderstood and did anything wrong with the
>> tutorial, thank you very much!
>> >>
>> >> Bests,
>> >>
>> >> Fan
>> >>
>> >>
>> >>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mihalik@alum.mit.edu
>> <ma...@alum.mit.edu>> wrote:
>> >>>
>> >>
>> >>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
>> >>>
>> >>> My response to your email this morning is below.
>> >>>
>> >>> ---------- Forwarded message ---------
>> >>> From: Aaron D. Mihalik <mihalik@alum.mit.edu <mailto:
>> mihalik@alum.mit.edu>>
>> >>> Date: Thu, Nov 19, 2015 at 8:47 AM
>> >>> Subject: Re: Maven Build Error
>> >>> To: <dev@rya.incubator.apache.org <mailto:
>> dev@rya.incubator.apache.org>>
>> >>>
>> >>>
>> >>> Hey Fan!
>> >>>
>> >>> Thanks for downloading Rya and testing it out.
>> >>>
>> >>> It appears that you must use Maven 3 (for kinda a funny reason...
>> it'll hit the apache repo by default), and it appears that there are some
>> test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
>> >>>
>> >>> You should be able to build rya using this command (with maven 3):
>> mvn clean install -DskipTests
>> >>>
>> >>> Regardless, we need to create an ticket to fix your broken test.
>> Could you send out your test report?  Specifically, we're interested in :
>> dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
>> >>>
>> >>> --Aaron
>> >>>
>> >>>
>> >>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <mailto:
>> fyang1@umbc.edu>> wrote:
>> >>> Hi,
>> >>>
>> >>> My name is Fan Yang, I am a phd student in Information Systems
>> Department, UMBC. Currently I am working on Rya project under the
>> supervision of Dr. Adina. I faced a problem when I tried to reproduce the
>> development environment on my virtual machine.
>> >>>
>> >>> When I built Rya project by Maven, it gave me some error report and
>> same thing happened even I tried different versions of Maven. I am
>> attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven
>> 2.2.1 (log221.txt) and looking for some help. Thank you so much!
>> >>>
>> >>> My development environment is:
>> >>>
>> >>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
>> >>> Maven version: 3.3.3
>> >>> Java version: OpenJDK Runtime Environment 1.7.0_79
>> >>> Accumulo version: 1.6.1.2.2.4.2-2
>> >>> Hadoop version:2.6.0.2.2.4.2-2
>> >>>
>> >>> Bests,
>> >>>
>> >>> Fan
>> >>>
>> >
>>
>>
>
>
> --
> Dr. Adina Crainiceanu
> http://www.usna.edu/Users/cs/adina/
>
>
>
>

Re: Maven Build Error

Posted by Fan Yang <fy...@umbc.edu>.
Hi Dr. Adina,

I named my $RDF_DATA file as ntriplesFile and put it under the folder same as Java code’s. I tried to delete the empty loadrdf file and re-run the code, the same error message was showed up. The error log containing the command I’m using, loadrdf java code and ntripleFile are attached in this email. Thanks!

Bests,

Fan

 
> On Dec 16, 2015, at 2:55 PM, Fan Yang <fy...@umbc.edu> wrote:
> 
> Hi Dr. Adina,
> 
> The one I’m using is an empty file. Cause when the war package is deployed, there is no such file named loadrdf under the certain folder. The n-Triples file I’m using is the one listed on the tutorial, the content is :
> 
> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>> <http://mynamespace/ProductType <http://mynamespace/ProductType>> .
> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> <http://www.w3.org/2000/01/rdf-schema#label <http://www.w3.org/2000/01/rdf-schema#label>> "Thing" .
> <http://mynamespace/ProductType1 <http://mynamespace/ProductType1>> <http://purl.org/dc/elements/1.1/publisher <http://purl.org/dc/elements/1.1/publisher>> <http://mynamespace/Publisher1 <http://mynamespace/Publisher1>> .
> Bests,
> 
> Fan
>> On Dec 16, 2015, at 2:23 PM, Adina Crainiceanu <adina@usna.edu <ma...@usna.edu>> wrote:
>> 
>> Fan,
>> 
>> Can you please send the rdf file you are trying to load? Maybe that is the problem.
>> 
>> Adina
>> 
>> On Thu, Dec 3, 2015 at 12:44 PM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>> Hi Aaron,
>> 
>> There is an additional information you may need: Once I checked the web.rya folder under the webapps directory, there is no such file named loadrdf or queryrdf, so I created empty ones. Maybe that causes the error. Could you check your webapps directory to see if those files contain some certain scripts? Thank you so much!
>> 
>> Bests,
>> 
>> Fan
>> > On Dec 3, 2015, at 3:15 AM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>> >
>> > Hi Aaron,
>> >
>> > Thank you so much for your help! I reproduced the Vagrant VM successfully by following your instruction. Everything is working except loading data part. Even I fixed the “/“ error in the code I still face the same HTTP 500 error. I capture the error message when I load the link [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples> <http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples>> on my browser and copy the tomcat log file to you.
>> >
>> > Bests,
>> >
>> > Fan
>> >
>> > <catalina.2015-12-03.log>
>> > <error log>
>> >
>> >> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <aaron.mihalik@gmail.com <ma...@gmail.com> <mailto:aaron.mihalik@gmail.com <ma...@gmail.com>>> wrote:
>> >>
>> >> Hi Fan,
>> >>
>> >> The tutorial is a bit dated, so it might be confusing/incorrect.
>> >>
>> >> You have a couple options:
>> >>
>> >> 1. You could start using the Vagrant vm that I'm putting together as a "Rya Quickstart VM".
>> >>
>> >> It's a bit rough right now, and it doesn't have Hadoop or MapReduce (so you can't do the bulk load), but it does have the script you mentioned for loading N-Triples.  An early copy of the Vagrantfile is here [1].
>> >>
>> >> It'll take about 30 minutes to build the VM, but once you do, you'll have the rya web endpoint up and running here [2] and you can ssh into the box to load data.  Once you ssh into the machine, you can run 'java LoadDataServletRun' to load n-triples files.  Infact, you that script will take a "batchSize" parameter to split a large ntriples into small loads.
>> >>
>> >> 2. We can help you debug your current vm.
>> >>
>> >> The first step would be to try to hit this webpage [3] and see if the sparql query page loads.  Also note that the URL you provided has an extra "/" in it and you should try [4].
>> >>
>> >> If those load properly, then the issue might be the LoadDataServletRun file itself (I haven't tried the one you mentioned), but you could try the new one located at the bottom of the Vagrant file.
>> >>
>> >> If those links do not load properly, please send us your tomcat logs and we'll take a look to see what's up with tomcat.
>> >>
>> >> --Aaron
>> >>
>> >> [1] https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile> <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile>>
>> >> [2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp> <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp>> or  http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp> <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp>>
>> >> [3] http://localhost:8080/web.rya/sparqlQuery.jsp <http://localhost:8080/web.rya/sparqlQuery.jsp> <http://localhost:8080/web.rya/sparqlQuery.jsp <http://localhost:8080/web.rya/sparqlQuery.jsp>>
>> >> [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples> <http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples>>
>> >> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu> <mailto:fyang1@umbc.edu <ma...@umbc.edu>>> wrote:
>> >> Hi Aaron,
>> >>
>> >> Sorry to bother you again. I faced a new problem in loading RDF data process. Following the tutorial, I created loadrdf folder and N-Triples file $RDF_DATA, when I complied and run the java code, it gave the error message like :”java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples <http://localhost:8080/web.rya/loadrdf/?format=N-Triples> <http://localhost:8080/web.rya/loadrdf/?format=N-Triples <http://localhost:8080/web.rya/loadrdf/?format=N-Triples>>” my tomcat host server’s URL is localhost and port number is 8080 by default.
>> >>
>> >> Also another question is about bulk load RDF data. There is an example code in the tutorial, I’ve tried to find the similar jar package named accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with this one, it said it’s not a valid jar.
>> >>
>> >> Please let me know if I misunderstood and did anything wrong with the tutorial, thank you very much!
>> >>
>> >> Bests,
>> >>
>> >> Fan
>> >>
>> >>
>> >>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu> <mailto:mihalik@alum.mit.edu <ma...@alum.mit.edu>>> wrote:
>> >>>
>> >>
>> >>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
>> >>>
>> >>> My response to your email this morning is below.
>> >>>
>> >>> ---------- Forwarded message ---------
>> >>> From: Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu> <mailto:mihalik@alum.mit.edu <ma...@alum.mit.edu>>>
>> >>> Date: Thu, Nov 19, 2015 at 8:47 AM
>> >>> Subject: Re: Maven Build Error
>> >>> To: <dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org> <mailto:dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org>>>
>> >>>
>> >>>
>> >>> Hey Fan!
>> >>>
>> >>> Thanks for downloading Rya and testing it out.
>> >>>
>> >>> It appears that you must use Maven 3 (for kinda a funny reason... it'll hit the apache repo by default), and it appears that there are some test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
>> >>>
>> >>> You should be able to build rya using this command (with maven 3): mvn clean install -DskipTests
>> >>>
>> >>> Regardless, we need to create an ticket to fix your broken test.  Could you send out your test report?  Specifically, we're interested in : dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
>> >>>
>> >>> --Aaron
>> >>>
>> >>>
>> >>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu> <mailto:fyang1@umbc.edu <ma...@umbc.edu>>> wrote:
>> >>> Hi,
>> >>>
>> >>> My name is Fan Yang, I am a phd student in Information Systems Department, UMBC. Currently I am working on Rya project under the supervision of Dr. Adina. I faced a problem when I tried to reproduce the development environment on my virtual machine.
>> >>>
>> >>> When I built Rya project by Maven, it gave me some error report and same thing happened even I tried different versions of Maven. I am attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1 (log221.txt) and looking for some help. Thank you so much!
>> >>>
>> >>> My development environment is:
>> >>>
>> >>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
>> >>> Maven version: 3.3.3
>> >>> Java version: OpenJDK Runtime Environment 1.7.0_79
>> >>> Accumulo version: 1.6.1.2.2.4.2-2
>> >>> Hadoop version:2.6.0.2.2.4.2-2
>> >>>
>> >>> Bests,
>> >>>
>> >>> Fan
>> >>>
>> >
>> 
>> 
>> 
>> 
>> -- 
>> Dr. Adina Crainiceanu
>> http://www.usna.edu/Users/cs/adina/ <http://www.usna.edu/Users/cs/adina/>


Re: Maven Build Error

Posted by Fan Yang <fy...@umbc.edu>.
Hi Dr. Adina,

The one I’m using is an empty file. Cause when the war package is deployed, there is no such file named loadrdf under the certain folder. The n-Triples file I’m using is the one listed on the tutorial, the content is :

<http://mynamespace/ProductType1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://mynamespace/ProductType> .
<http://mynamespace/ProductType1> <http://www.w3.org/2000/01/rdf-schema#label> "Thing" .
<http://mynamespace/ProductType1> <http://purl.org/dc/elements/1.1/publisher> <http://mynamespace/Publisher1> .
Bests,

Fan
> On Dec 16, 2015, at 2:23 PM, Adina Crainiceanu <ad...@usna.edu> wrote:
> 
> Fan,
> 
> Can you please send the rdf file you are trying to load? Maybe that is the problem.
> 
> Adina
> 
> On Thu, Dec 3, 2015 at 12:44 PM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
> Hi Aaron,
> 
> There is an additional information you may need: Once I checked the web.rya folder under the webapps directory, there is no such file named loadrdf or queryrdf, so I created empty ones. Maybe that causes the error. Could you check your webapps directory to see if those files contain some certain scripts? Thank you so much!
> 
> Bests,
> 
> Fan
> > On Dec 3, 2015, at 3:15 AM, Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
> >
> > Hi Aaron,
> >
> > Thank you so much for your help! I reproduced the Vagrant VM successfully by following your instruction. Everything is working except loading data part. Even I fixed the “/“ error in the code I still face the same HTTP 500 error. I capture the error message when I load the link [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples> <http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples>> on my browser and copy the tomcat log file to you.
> >
> > Bests,
> >
> > Fan
> >
> > <catalina.2015-12-03.log>
> > <error log>
> >
> >> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <aaron.mihalik@gmail.com <ma...@gmail.com> <mailto:aaron.mihalik@gmail.com <ma...@gmail.com>>> wrote:
> >>
> >> Hi Fan,
> >>
> >> The tutorial is a bit dated, so it might be confusing/incorrect.
> >>
> >> You have a couple options:
> >>
> >> 1. You could start using the Vagrant vm that I'm putting together as a "Rya Quickstart VM".
> >>
> >> It's a bit rough right now, and it doesn't have Hadoop or MapReduce (so you can't do the bulk load), but it does have the script you mentioned for loading N-Triples.  An early copy of the Vagrantfile is here [1].
> >>
> >> It'll take about 30 minutes to build the VM, but once you do, you'll have the rya web endpoint up and running here [2] and you can ssh into the box to load data.  Once you ssh into the machine, you can run 'java LoadDataServletRun' to load n-triples files.  Infact, you that script will take a "batchSize" parameter to split a large ntriples into small loads.
> >>
> >> 2. We can help you debug your current vm.
> >>
> >> The first step would be to try to hit this webpage [3] and see if the sparql query page loads.  Also note that the URL you provided has an extra "/" in it and you should try [4].
> >>
> >> If those load properly, then the issue might be the LoadDataServletRun file itself (I haven't tried the one you mentioned), but you could try the new one located at the bottom of the Vagrant file.
> >>
> >> If those links do not load properly, please send us your tomcat logs and we'll take a look to see what's up with tomcat.
> >>
> >> --Aaron
> >>
> >> [1] https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile> <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile>>
> >> [2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp> <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp>> or  http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp> <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp>>
> >> [3] http://localhost:8080/web.rya/sparqlQuery.jsp <http://localhost:8080/web.rya/sparqlQuery.jsp> <http://localhost:8080/web.rya/sparqlQuery.jsp <http://localhost:8080/web.rya/sparqlQuery.jsp>>
> >> [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples> <http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples>>
> >> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu> <mailto:fyang1@umbc.edu <ma...@umbc.edu>>> wrote:
> >> Hi Aaron,
> >>
> >> Sorry to bother you again. I faced a new problem in loading RDF data process. Following the tutorial, I created loadrdf folder and N-Triples file $RDF_DATA, when I complied and run the java code, it gave the error message like :”java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples <http://localhost:8080/web.rya/loadrdf/?format=N-Triples> <http://localhost:8080/web.rya/loadrdf/?format=N-Triples <http://localhost:8080/web.rya/loadrdf/?format=N-Triples>>” my tomcat host server’s URL is localhost and port number is 8080 by default.
> >>
> >> Also another question is about bulk load RDF data. There is an example code in the tutorial, I’ve tried to find the similar jar package named accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with this one, it said it’s not a valid jar.
> >>
> >> Please let me know if I misunderstood and did anything wrong with the tutorial, thank you very much!
> >>
> >> Bests,
> >>
> >> Fan
> >>
> >>
> >>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu> <mailto:mihalik@alum.mit.edu <ma...@alum.mit.edu>>> wrote:
> >>>
> >>
> >>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
> >>>
> >>> My response to your email this morning is below.
> >>>
> >>> ---------- Forwarded message ---------
> >>> From: Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu> <mailto:mihalik@alum.mit.edu <ma...@alum.mit.edu>>>
> >>> Date: Thu, Nov 19, 2015 at 8:47 AM
> >>> Subject: Re: Maven Build Error
> >>> To: <dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org> <mailto:dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org>>>
> >>>
> >>>
> >>> Hey Fan!
> >>>
> >>> Thanks for downloading Rya and testing it out.
> >>>
> >>> It appears that you must use Maven 3 (for kinda a funny reason... it'll hit the apache repo by default), and it appears that there are some test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
> >>>
> >>> You should be able to build rya using this command (with maven 3): mvn clean install -DskipTests
> >>>
> >>> Regardless, we need to create an ticket to fix your broken test.  Could you send out your test report?  Specifically, we're interested in : dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
> >>>
> >>> --Aaron
> >>>
> >>>
> >>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu> <mailto:fyang1@umbc.edu <ma...@umbc.edu>>> wrote:
> >>> Hi,
> >>>
> >>> My name is Fan Yang, I am a phd student in Information Systems Department, UMBC. Currently I am working on Rya project under the supervision of Dr. Adina. I faced a problem when I tried to reproduce the development environment on my virtual machine.
> >>>
> >>> When I built Rya project by Maven, it gave me some error report and same thing happened even I tried different versions of Maven. I am attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1 (log221.txt) and looking for some help. Thank you so much!
> >>>
> >>> My development environment is:
> >>>
> >>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
> >>> Maven version: 3.3.3
> >>> Java version: OpenJDK Runtime Environment 1.7.0_79
> >>> Accumulo version: 1.6.1.2.2.4.2-2
> >>> Hadoop version:2.6.0.2.2.4.2-2
> >>>
> >>> Bests,
> >>>
> >>> Fan
> >>>
> >
> 
> 
> 
> 
> -- 
> Dr. Adina Crainiceanu
> http://www.usna.edu/Users/cs/adina/ <http://www.usna.edu/Users/cs/adina/>

Re: Maven Build Error

Posted by Adina Crainiceanu <ad...@usna.edu>.
Fan,

Can you please send the rdf file you are trying to load? Maybe that is the
problem.

Adina

On Thu, Dec 3, 2015 at 12:44 PM, Fan Yang <fy...@umbc.edu> wrote:

> Hi Aaron,
>
> There is an additional information you may need: Once I checked the
> web.rya folder under the webapps directory, there is no such file named
> loadrdf or queryrdf, so I created empty ones. Maybe that causes the error.
> Could you check your webapps directory to see if those files contain some
> certain scripts? Thank you so much!
>
> Bests,
>
> Fan
> > On Dec 3, 2015, at 3:15 AM, Fan Yang <fy...@umbc.edu> wrote:
> >
> > Hi Aaron,
> >
> > Thank you so much for your help! I reproduced the Vagrant VM
> successfully by following your instruction. Everything is working except
> loading data part. Even I fixed the “/“ error in the code I still face the
> same HTTP 500 error. I capture the error message when I load the link [4]
> http://localhost:8080/web.rya/loadrdf?format=N-Triples <
> http://localhost:8080/web.rya/loadrdf?format=N-Triples> on my browser and
> copy the tomcat log file to you.
> >
> > Bests,
> >
> > Fan
> >
> > <catalina.2015-12-03.log>
> > <error log>
> >
> >> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <aaron.mihalik@gmail.com
> <ma...@gmail.com>> wrote:
> >>
> >> Hi Fan,
> >>
> >> The tutorial is a bit dated, so it might be confusing/incorrect.
> >>
> >> You have a couple options:
> >>
> >> 1. You could start using the Vagrant vm that I'm putting together as a
> "Rya Quickstart VM".
> >>
> >> It's a bit rough right now, and it doesn't have Hadoop or MapReduce (so
> you can't do the bulk load), but it does have the script you mentioned for
> loading N-Triples.  An early copy of the Vagrantfile is here [1].
> >>
> >> It'll take about 30 minutes to build the VM, but once you do, you'll
> have the rya web endpoint up and running here [2] and you can ssh into the
> box to load data.  Once you ssh into the machine, you can run 'java
> LoadDataServletRun' to load n-triples files.  Infact, you that script will
> take a "batchSize" parameter to split a large ntriples into small loads.
> >>
> >> 2. We can help you debug your current vm.
> >>
> >> The first step would be to try to hit this webpage [3] and see if the
> sparql query page loads.  Also note that the URL you provided has an extra
> "/" in it and you should try [4].
> >>
> >> If those load properly, then the issue might be the LoadDataServletRun
> file itself (I haven't tried the one you mentioned), but you could try the
> new one located at the bottom of the Vagrant file.
> >>
> >> If those links do not load properly, please send us your tomcat logs
> and we'll take a look to see what's up with tomcat.
> >>
> >> --Aaron
> >>
> >> [1]
> https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile
> <
> https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile
> >
> >> [2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <
> http://192.168.33.10:8080/web.rya/sparqlQuery.jsp> or
> http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <
> http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp>
> >> [3] http://localhost:8080/web.rya/sparqlQuery.jsp <
> http://localhost:8080/web.rya/sparqlQuery.jsp>
> >> [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <
> http://localhost:8080/web.rya/loadrdf?format=N-Triples>
> >> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fyang1@umbc.edu <mailto:
> fyang1@umbc.edu>> wrote:
> >> Hi Aaron,
> >>
> >> Sorry to bother you again. I faced a new problem in loading RDF data
> process. Following the tutorial, I created loadrdf folder and N-Triples
> file $RDF_DATA, when I complied and run the java code, it gave the error
> message like :”java.io.IOException: Server returned HTTP response code: 500
> for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples <
> http://localhost:8080/web.rya/loadrdf/?format=N-Triples>” my tomcat host
> server’s URL is localhost and port number is 8080 by default.
> >>
> >> Also another question is about bulk load RDF data. There is an example
> code in the tutorial, I’ve tried to find the similar jar package named
> accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could
> found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with
> this one, it said it’s not a valid jar.
> >>
> >> Please let me know if I misunderstood and did anything wrong with the
> tutorial, thank you very much!
> >>
> >> Bests,
> >>
> >> Fan
> >>
> >>
> >>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mihalik@alum.mit.edu
> <ma...@alum.mit.edu>> wrote:
> >>>
> >>
> >>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
> >>>
> >>> My response to your email this morning is below.
> >>>
> >>> ---------- Forwarded message ---------
> >>> From: Aaron D. Mihalik <mihalik@alum.mit.edu <mailto:
> mihalik@alum.mit.edu>>
> >>> Date: Thu, Nov 19, 2015 at 8:47 AM
> >>> Subject: Re: Maven Build Error
> >>> To: <dev@rya.incubator.apache.org <mailto:dev@rya.incubator.apache.org
> >>
> >>>
> >>>
> >>> Hey Fan!
> >>>
> >>> Thanks for downloading Rya and testing it out.
> >>>
> >>> It appears that you must use Maven 3 (for kinda a funny reason...
> it'll hit the apache repo by default), and it appears that there are some
> test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
> >>>
> >>> You should be able to build rya using this command (with maven 3): mvn
> clean install -DskipTests
> >>>
> >>> Regardless, we need to create an ticket to fix your broken test.
> Could you send out your test report?  Specifically, we're interested in :
> dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
> >>>
> >>> --Aaron
> >>>
> >>>
> >>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <mailto:
> fyang1@umbc.edu>> wrote:
> >>> Hi,
> >>>
> >>> My name is Fan Yang, I am a phd student in Information Systems
> Department, UMBC. Currently I am working on Rya project under the
> supervision of Dr. Adina. I faced a problem when I tried to reproduce the
> development environment on my virtual machine.
> >>>
> >>> When I built Rya project by Maven, it gave me some error report and
> same thing happened even I tried different versions of Maven. I am
> attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven
> 2.2.1 (log221.txt) and looking for some help. Thank you so much!
> >>>
> >>> My development environment is:
> >>>
> >>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
> >>> Maven version: 3.3.3
> >>> Java version: OpenJDK Runtime Environment 1.7.0_79
> >>> Accumulo version: 1.6.1.2.2.4.2-2
> >>> Hadoop version:2.6.0.2.2.4.2-2
> >>>
> >>> Bests,
> >>>
> >>> Fan
> >>>
> >
>
>


-- 
Dr. Adina Crainiceanu
http://www.usna.edu/Users/cs/adina/

Re: Maven Build Error

Posted by Fan Yang <fy...@umbc.edu>.
Hi Aaron,

There is an additional information you may need: Once I checked the web.rya folder under the webapps directory, there is no such file named loadrdf or queryrdf, so I created empty ones. Maybe that causes the error. Could you check your webapps directory to see if those files contain some certain scripts? Thank you so much!

Bests,

Fan  
> On Dec 3, 2015, at 3:15 AM, Fan Yang <fy...@umbc.edu> wrote:
> 
> Hi Aaron,
> 
> Thank you so much for your help! I reproduced the Vagrant VM successfully by following your instruction. Everything is working except loading data part. Even I fixed the “/“ error in the code I still face the same HTTP 500 error. I capture the error message when I load the link [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples> on my browser and copy the tomcat log file to you. 
> 
> Bests,
> 
> Fan
> 
> <catalina.2015-12-03.log>
> <error log>
>  
>> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <aaron.mihalik@gmail.com <ma...@gmail.com>> wrote:
>> 
>> Hi Fan,
>> 
>> The tutorial is a bit dated, so it might be confusing/incorrect.
>> 
>> You have a couple options:
>> 
>> 1. You could start using the Vagrant vm that I'm putting together as a "Rya Quickstart VM".  
>> 
>> It's a bit rough right now, and it doesn't have Hadoop or MapReduce (so you can't do the bulk load), but it does have the script you mentioned for loading N-Triples.  An early copy of the Vagrantfile is here [1].  
>> 
>> It'll take about 30 minutes to build the VM, but once you do, you'll have the rya web endpoint up and running here [2] and you can ssh into the box to load data.  Once you ssh into the machine, you can run 'java LoadDataServletRun' to load n-triples files.  Infact, you that script will take a "batchSize" parameter to split a large ntriples into small loads.
>> 
>> 2. We can help you debug your current vm.
>> 
>> The first step would be to try to hit this webpage [3] and see if the sparql query page loads.  Also note that the URL you provided has an extra "/" in it and you should try [4].  
>> 
>> If those load properly, then the issue might be the LoadDataServletRun file itself (I haven't tried the one you mentioned), but you could try the new one located at the bottom of the Vagrant file.
>> 
>> If those links do not load properly, please send us your tomcat logs and we'll take a look to see what's up with tomcat.
>> 
>> --Aaron
>> 
>> [1] https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile>
>> [2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp> or  http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp>
>> [3] http://localhost:8080/web.rya/sparqlQuery.jsp <http://localhost:8080/web.rya/sparqlQuery.jsp>
>> [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples>
>> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>> Hi Aaron,
>> 
>> Sorry to bother you again. I faced a new problem in loading RDF data process. Following the tutorial, I created loadrdf folder and N-Triples file $RDF_DATA, when I complied and run the java code, it gave the error message like :”java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples <http://localhost:8080/web.rya/loadrdf/?format=N-Triples>” my tomcat host server’s URL is localhost and port number is 8080 by default. 
>> 
>> Also another question is about bulk load RDF data. There is an example code in the tutorial, I’ve tried to find the similar jar package named accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with this one, it said it’s not a valid jar.
>> 
>> Please let me know if I misunderstood and did anything wrong with the tutorial, thank you very much!
>> 
>> Bests,
>> 
>> Fan
>>  
>> 
>>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu>> wrote:
>>> 
>> 
>>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
>>> 
>>> My response to your email this morning is below. 
>>> 
>>> ---------- Forwarded message ---------
>>> From: Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu>>
>>> Date: Thu, Nov 19, 2015 at 8:47 AM
>>> Subject: Re: Maven Build Error
>>> To: <dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org>>
>>> 
>>> 
>>> Hey Fan!
>>> 
>>> Thanks for downloading Rya and testing it out.
>>> 
>>> It appears that you must use Maven 3 (for kinda a funny reason... it'll hit the apache repo by default), and it appears that there are some test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
>>> 
>>> You should be able to build rya using this command (with maven 3): mvn clean install -DskipTests
>>> 
>>> Regardless, we need to create an ticket to fix your broken test.  Could you send out your test report?  Specifically, we're interested in : dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
>>> 
>>> --Aaron
>>> 
>>> 
>>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>>> Hi,
>>> 
>>> My name is Fan Yang, I am a phd student in Information Systems Department, UMBC. Currently I am working on Rya project under the supervision of Dr. Adina. I faced a problem when I tried to reproduce the development environment on my virtual machine.
>>> 
>>> When I built Rya project by Maven, it gave me some error report and same thing happened even I tried different versions of Maven. I am attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1 (log221.txt) and looking for some help. Thank you so much!
>>> 
>>> My development environment is:
>>> 
>>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
>>> Maven version: 3.3.3
>>> Java version: OpenJDK Runtime Environment 1.7.0_79
>>> Accumulo version: 1.6.1.2.2.4.2-2
>>> Hadoop version:2.6.0.2.2.4.2-2
>>> 
>>> Bests,
>>> 
>>> Fan
>>> 
> 


Re: Maven Build Error

Posted by Fan Yang <fy...@umbc.edu>.
Hi Aaron,

Thank you so much for your help! I reproduced the Vagrant VM successfully by following your instruction. Everything is working except loading data part. Even I fixed the “/“ error in the code I still face the same HTTP 500 error. I capture the error message when I load the link [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples> on my browser and copy the tomcat log file to you. 

Bests,

Fan


 
> On Dec 2, 2015, at 4:34 AM, Aaron D. Mihalik <aa...@gmail.com> wrote:
> 
> Hi Fan,
> 
> The tutorial is a bit dated, so it might be confusing/incorrect.
> 
> You have a couple options:
> 
> 1. You could start using the Vagrant vm that I'm putting together as a "Rya Quickstart VM".  
> 
> It's a bit rough right now, and it doesn't have Hadoop or MapReduce (so you can't do the bulk load), but it does have the script you mentioned for loading N-Triples.  An early copy of the Vagrantfile is here [1].  
> 
> It'll take about 30 minutes to build the VM, but once you do, you'll have the rya web endpoint up and running here [2] and you can ssh into the box to load data.  Once you ssh into the machine, you can run 'java LoadDataServletRun' to load n-triples files.  Infact, you that script will take a "batchSize" parameter to split a large ntriples into small loads.
> 
> 2. We can help you debug your current vm.
> 
> The first step would be to try to hit this webpage [3] and see if the sparql query page loads.  Also note that the URL you provided has an extra "/" in it and you should try [4].  
> 
> If those load properly, then the issue might be the LoadDataServletRun file itself (I haven't tried the one you mentioned), but you could try the new one located at the bottom of the Vagrant file.
> 
> If those links do not load properly, please send us your tomcat logs and we'll take a look to see what's up with tomcat.
> 
> --Aaron
> 
> [1] https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile <https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile>
> [2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp <http://192.168.33.10:8080/web.rya/sparqlQuery.jsp> or  http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp <http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp>
> [3] http://localhost:8080/web.rya/sparqlQuery.jsp <http://localhost:8080/web.rya/sparqlQuery.jsp>
> [4] http://localhost:8080/web.rya/loadrdf?format=N-Triples <http://localhost:8080/web.rya/loadrdf?format=N-Triples>
> On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
> Hi Aaron,
> 
> Sorry to bother you again. I faced a new problem in loading RDF data process. Following the tutorial, I created loadrdf folder and N-Triples file $RDF_DATA, when I complied and run the java code, it gave the error message like :”java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples <http://localhost:8080/web.rya/loadrdf/?format=N-Triples>” my tomcat host server’s URL is localhost and port number is 8080 by default. 
> 
> Also another question is about bulk load RDF data. There is an example code in the tutorial, I’ve tried to find the similar jar package named accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with this one, it said it’s not a valid jar.
> 
> Please let me know if I misunderstood and did anything wrong with the tutorial, thank you very much!
> 
> Bests,
> 
> Fan
>  
> 
>> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu>> wrote:
>> 
> 
>> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
>> 
>> My response to your email this morning is below. 
>> 
>> ---------- Forwarded message ---------
>> From: Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu>>
>> Date: Thu, Nov 19, 2015 at 8:47 AM
>> Subject: Re: Maven Build Error
>> To: <dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org>>
>> 
>> 
>> Hey Fan!
>> 
>> Thanks for downloading Rya and testing it out.
>> 
>> It appears that you must use Maven 3 (for kinda a funny reason... it'll hit the apache repo by default), and it appears that there are some test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
>> 
>> You should be able to build rya using this command (with maven 3): mvn clean install -DskipTests
>> 
>> Regardless, we need to create an ticket to fix your broken test.  Could you send out your test report?  Specifically, we're interested in : dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
>> 
>> --Aaron
>> 
>> 
>> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
>> Hi,
>> 
>> My name is Fan Yang, I am a phd student in Information Systems Department, UMBC. Currently I am working on Rya project under the supervision of Dr. Adina. I faced a problem when I tried to reproduce the development environment on my virtual machine.
>> 
>> When I built Rya project by Maven, it gave me some error report and same thing happened even I tried different versions of Maven. I am attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1 (log221.txt) and looking for some help. Thank you so much!
>> 
>> My development environment is:
>> 
>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
>> Maven version: 3.3.3
>> Java version: OpenJDK Runtime Environment 1.7.0_79
>> Accumulo version: 1.6.1.2.2.4.2-2
>> Hadoop version:2.6.0.2.2.4.2-2
>> 
>> Bests,
>> 
>> Fan
>> 


Re: Maven Build Error

Posted by "Aaron D. Mihalik" <aa...@gmail.com>.
Hi Fan,

The tutorial is a bit dated, so it might be confusing/incorrect.

You have a couple options:

1. You could start using the Vagrant vm that I'm putting together as a "Rya
Quickstart VM".

It's a bit rough right now, and it doesn't have Hadoop or MapReduce (so you
can't do the bulk load), but it does have the script you mentioned for
loading N-Triples.  An early copy of the Vagrantfile is here [1].

It'll take about 30 minutes to build the VM, but once you do, you'll have
the rya web endpoint up and running here [2] and you can ssh into the box
to load data.  Once you ssh into the machine, you can run 'java
LoadDataServletRun'
to load n-triples files.  Infact, you that script will take a "batchSize"
parameter to split a large ntriples into small loads.

2. We can help you debug your current vm.

The first step would be to try to hit this webpage [3] and see if the
sparql query page loads.  Also note that the URL you provided has an extra
"/" in it and you should try [4].

If those load properly, then the issue might be the LoadDataServletRun file
itself (I haven't tried the one you mentioned), but you could try the new
one located at the bottom of the Vagrant file.

If those links do not load properly, please send us your tomcat logs and
we'll take a look to see what's up with tomcat.

--Aaron

[1]
https://raw.githubusercontent.com/amihalik/incubator-rya/RYA-4/extras/indexingSailExample/src/main/vagrant/Vagrantfile
[2] http://192.168.33.10:8080/web.rya/sparqlQuery.jsp or
http://accumulo-dev-box:8080/web.rya/sparqlQuery.jsp
[3] http://localhost:8080/web.rya/sparqlQuery.jsp
[4] http://localhost:8080/web.rya/loadrdf?format=N-Triples

On Wed, Dec 2, 2015 at 2:25 AM Fan Yang <fy...@umbc.edu> wrote:

> Hi Aaron,
>
> Sorry to bother you again. I faced a new problem in loading RDF data
> process. Following the tutorial, I created loadrdf folder and N-Triples
> file $RDF_DATA, when I complied and run the java code, it gave the error
> message like :”java.io.IOException: Server returned HTTP response code: 500
> for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples” my
> tomcat host server’s URL is localhost and port number is 8080 by default.
>
> Also another question is about bulk load RDF data. There is an example
> code in the tutorial, I’ve tried to find the similar jar package named
> accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could
> found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with
> this one, it said it’s not a valid jar.
>
> Please let me know if I misunderstood and did anything wrong with the
> tutorial, thank you very much!
>
> Bests,
>
> Fan
>
>
> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mi...@alum.mit.edu>
> wrote:
>
> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
>
> My response to your email this morning is below.
>
> ---------- Forwarded message ---------
> From: Aaron D. Mihalik <mi...@alum.mit.edu>
> Date: Thu, Nov 19, 2015 at 8:47 AM
> Subject: Re: Maven Build Error
> To: <de...@rya.incubator.apache.org>
>
>
> Hey Fan!
>
> Thanks for downloading Rya and testing it out.
>
> It appears that you must use Maven 3 (for kinda a funny reason... it'll
> hit the apache repo by default), and it appears that there are some test
> issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
>
> You should be able to build rya using this command (with maven 3): mvn
> clean install -DskipTests
>
> Regardless, we need to create an ticket to fix your broken test.  Could
> you send out your test report?  Specifically, we're interested in :
> dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
>
> --Aaron
>
>
> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fy...@umbc.edu> wrote:
>
>> Hi,
>>
>> My name is Fan Yang, I am a phd student in Information Systems
>> Department, UMBC. Currently I am working on Rya project under the
>> supervision of Dr. Adina. I faced a problem when I tried to reproduce the
>> development environment on my virtual machine.
>>
>> When I built Rya project by Maven, it gave me some error report and same
>> thing happened even I tried different versions of Maven. I am attaching the
>> log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1
>> (log221.txt) and looking for some help. Thank you so much!
>>
>> My development environment is:
>>
>> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
>> Maven version: 3.3.3
>> Java version: OpenJDK Runtime Environment 1.7.0_79
>> Accumulo version: 1.6.1.2.2.4.2-2
>> Hadoop version:2.6.0.2.2.4.2-2
>>
>> Bests,
>>
>> Fan
>>
>>

Re: Maven Build Error

Posted by Fan Yang <fy...@umbc.edu>.
Hi Aaron,

Sorry to bother you again. I faced a new problem in loading RDF data process. Following the tutorial, I created loadrdf folder and N-Triples file $RDF_DATA, when I complied and run the java code, it gave the error message like :”java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/web.rya/loadrdf/?format=N-Triples” my tomcat host server’s URL is localhost and port number is 8080 by default. 

Also another question is about bulk load RDF data. There is an example code in the tutorial, I’ve tried to find the similar jar package named accumulo.rya-3.0.4-SNAPSHOT-shaded.jar, unfortunately the only one I could found is accumulo.rya-3.2.10-SNAPSHOT.jar and when I replaced the code with this one, it said it’s not a valid jar.

Please let me know if I misunderstood and did anything wrong with the tutorial, thank you very much!

Bests,

Fan
 
> On Nov 19, 2015, at 1:24 PM, Aaron D. Mihalik <mi...@alum.mit.edu> wrote:
> 
> Hey Fan.  Are you on the dev list?  I didn't do a "reply-all"...
> 
> My response to your email this morning is below. 
> 
> ---------- Forwarded message ---------
> From: Aaron D. Mihalik <mihalik@alum.mit.edu <ma...@alum.mit.edu>>
> Date: Thu, Nov 19, 2015 at 8:47 AM
> Subject: Re: Maven Build Error
> To: <dev@rya.incubator.apache.org <ma...@rya.incubator.apache.org>>
> 
> 
> Hey Fan!
> 
> Thanks for downloading Rya and testing it out.
> 
> It appears that you must use Maven 3 (for kinda a funny reason... it'll hit the apache repo by default), and it appears that there are some test issues with mvm.rya.accumulo.AccumuloRyaDAOTest.
> 
> You should be able to build rya using this command (with maven 3): mvn clean install -DskipTests
> 
> Regardless, we need to create an ticket to fix your broken test.  Could you send out your test report?  Specifically, we're interested in : dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt
> 
> --Aaron
> 
> 
> On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fyang1@umbc.edu <ma...@umbc.edu>> wrote:
> Hi,
> 
> My name is Fan Yang, I am a phd student in Information Systems Department, UMBC. Currently I am working on Rya project under the supervision of Dr. Adina. I faced a problem when I tried to reproduce the development environment on my virtual machine.
> 
> When I built Rya project by Maven, it gave me some error report and same thing happened even I tried different versions of Maven. I am attaching the log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1 (log221.txt) and looking for some help. Thank you so much!
> 
> My development environment is:
> 
> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
> Maven version: 3.3.3
> Java version: OpenJDK Runtime Environment 1.7.0_79
> Accumulo version: 1.6.1.2.2.4.2-2
> Hadoop version:2.6.0.2.2.4.2-2
> 
> Bests,
> 
> Fan
> 


Re: Maven Build Error

Posted by "Aaron D. Mihalik" <mi...@alum.mit.edu>.
Hey Fan!

Thanks for downloading Rya and testing it out.

It appears that you must use Maven 3 (for kinda a funny reason... it'll hit
the apache repo by default), and it appears that there are some test issues
with mvm.rya.accumulo.AccumuloRyaDAOTest.

You should be able to build rya using this command (with maven 3): mvn
clean install -DskipTests

Regardless, we need to create an ticket to fix your broken test.  Could you
send out your test report?  Specifically, we're interested in :
dao/accumulo.rya/target/surefire-reports/mvm.rya.accumulo.AccumuloRyaDAOTest.txt

--Aaron


On Thu, Nov 19, 2015 at 7:28 AM Fan Yang <fy...@umbc.edu> wrote:

> Hi,
>
> My name is Fan Yang, I am a phd student in Information Systems Department,
> UMBC. Currently I am working on Rya project under the supervision of Dr.
> Adina. I faced a problem when I tried to reproduce the development
> environment on my virtual machine.
>
> When I built Rya project by Maven, it gave me some error report and same
> thing happened even I tried different versions of Maven. I am attaching the
> log files generated by Maven 3.3.3 (log333.txt) and Maven 2.2.1
> (log221.txt) and looking for some help. Thank you so much!
>
> My development environment is:
>
> OS: Hortonworks Sandbox with HDP 2.2.4 (Cent OS 6 64bit)
> Maven version: 3.3.3
> Java version: OpenJDK Runtime Environment 1.7.0_79
> Accumulo version: 1.6.1.2.2.4.2-2
> Hadoop version:2.6.0.2.2.4.2-2
>
> Bests,
>
> Fan
>
>