From: Douglas F. <dr...@gm...> - 2016-05-27 17:50:15
|
Brad, Works perfect. As noted my error was copying the whole base web.xml and making that change in it and using it. Using your version where just that one node is included and changed worked perfectly. Thanks for this... Next I need to update my Dockerfile process, but I am sure this is going to work. Really like blazegraph.... coming from some other triple stores and really seem to resonate with this one. Take care Doug On Fri, May 27, 2016 at 12:26 PM Brad Bebee <be...@bl...> wrote: > Here is the wiki link: > https://wiki.blazegraph.com/wiki/index.php/NanoSparqlServer#Read_Only_Configuration_with_the_Jetty_Override_and_Executable_Jar > . > > On Fri, May 27, 2016 at 1:17 PM, Brad Bebee <be...@bl...> wrote: > >> Doug, >> >> You need to wrap it in the web-app tag (see contents below and >> attached). I've updated the Wiki as well with this documentation. Happy >> Blazegraphing... ;-) >> >> Cheers, --Brad >> >> <?xml version="1.0" encoding="UTF-8"?> >> >> <web-app xmlns="http://java.sun.com/xml/ns/javaee" >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee >> http://java.sun.com/xml/ns/javaee/web-app_3_1.xsd" >> >> version="3.1"> >> >> <context-param> >> >> <description>When true, the REST API will not permit mutation >> operations.</description> >> >> <param-name>readOnly</param-name> >> >> <param-value>true</param-value> >> >> </context-param> >> >> </web-app> >> >> On Fri, May 27, 2016 at 11:57 AM, Douglas Fils <dr...@gm...> wrote: >> >>> Bryan, >>> I am following this and the docs. However, when I pull the web.xml >>> alter the lines for read only to: >>> >>> <context-param> >>> <description>When true, the REST API will not permit mutation >>> operations.</description> >>> <param-name>readOnly</param-name> >>> <param-value>true</param-value> >>> </context-param> >>> >>> I run with: java -server -Xmx4g -Djetty.overrideWebXml=./override.xml >>> -jar blazegraph.jar >>> >>> I get errors >>> >>> WARN : NanoSparqlServer.java:517: Starting NSS >>> WARN : AbstractLifeCycle.java:212: FAILED >>> org.eclipse.jetty.servlet.ServletHandler@239963d8: >>> java.lang.IllegalStateException: Multiple servlets map to path: /sparql: >>> REST API,REST API >>> java.lang.IllegalStateException: Multiple servlets map to path: /sparql: >>> REST API,REST API >>> >>> WARN : WebAppContext.java:506: Failed startup of context >>> o.e.j.w.WebAppContext@4157f54e >>> {/blazegraph,jar:file:/Users/dfils/Desktop/blazegraph/blazegraph.jar!/war,STARTING}{jar:file:/Users/dfils/Desktop/blazegraph/blazegraph.jar!/war} >>> java.lang.IllegalStateException: Multiple servlets map to path: /sparql: >>> REST API,REST API >>> >>> >>> sorry to be pest, I feel like I'm missing something simple. >>> >>> Doug >>> >>> >>> >>> On Thu, May 26, 2016 at 2:50 PM Bryan Thompson <br...@bl...> >>> wrote: >>> >>>> See https://wiki.blazegraph.com/wiki/index.php/NanoSparqlServer >>>> >>>> Customizing the web.xml >>>> >>>> You can override the default web.xml values in the executable jar using >>>> the jetty.overrideWebXml property. The file you specify should override the >>>> values that you'd like to replace. The web.xml values that default with the >>>> blazegraph.jar are in web.xml >>>> <https://github.com/blazegraph/database/blob/master/bigdata-war-html/src/main/webapp/WEB-INF/web.xml> >>>> . >>>> >>>> -Djetty.overrideWebXml=/path/to/override.xml >>>> >>>> A full example is below. >>>> >>>> java -server -Xmx4g -Djetty.overrideWebXml=/path/to/override.xml -Dbigdata.propertyFile=/etc/blazegraph/RWS >>>> >>>> >>>> Thanks, >>>> Bryan >>>> >>>> On Thu, May 26, 2016 at 2:03 PM, Douglas Fils <dr...@gm...> wrote: >>>> >>>>> I am using the .jar version though, not a .war file in an app server. >>>>> Am I still able to somehow override or reference a new web.xml file? >>>>> >>>>> >>>>> >>>>> >>>>> On Thu, May 26, 2016 at 12:56 PM Bryan Thompson <br...@bl...> >>>>> wrote: >>>>> >>>>>> You can control this in web.xml. >>>>>> >>>>>> Thanks, >>>>>> Bryan >>>>>> >>>>>> On Thu, May 26, 2016 at 1:45 PM, Douglas Fils <dr...@gm...> >>>>>> wrote: >>>>>> >>>>>>> Hello, >>>>>>> I am sure this is a simple question but I can't seem to launch a >>>>>>> previously created blazegraph instance with the namespaces in "readonly" >>>>>>> mode. >>>>>>> >>>>>>> Is there a simple way to add a -D option or something to >>>>>>> >>>>>>> java -server -Xmx4g -jar blazegraph.jar >>>>>>> >>>>>>> such that the existing namespaces are readonly on the sparql >>>>>>> endpoint so that I can expose the server to the net without a fear of >>>>>>> someone doing a update/delete etc on the triples? >>>>>>> >>>>>>> Thanks >>>>>>> Doug >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> Mobile security can be enabling, not merely restricting. Employees >>>>>>> who >>>>>>> bring their own devices (BYOD) to work are irked by the imposition >>>>>>> of MDM >>>>>>> restrictions. Mobile Device Manager Plus allows you to control only >>>>>>> the >>>>>>> apps on BYO-devices by containerizing them, leaving personal data >>>>>>> untouched! >>>>>>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j >>>>>>> _______________________________________________ >>>>>>> Bigdata-developers mailing list >>>>>>> Big...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/bigdata-developers >>>>>>> >>>>>>> >>>>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> What NetFlow Analyzer can do for you? Monitors network bandwidth and >>> traffic >>> patterns at an interface-level. Reveals which users, apps, and protocols >>> are >>> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >>> J-Flow, sFlow and other flows. Make informed decisions using capacity >>> planning reports. >>> https://ad.doubleclick.net/ddm/clk/305295220;132659582;e >>> _______________________________________________ >>> Bigdata-developers mailing list >>> Big...@li... >>> https://lists.sourceforge.net/lists/listinfo/bigdata-developers >>> >>> >> >> >> -- >> _______________ >> Brad Bebee >> CEO >> Blazegraph >> e: be...@bl... >> m: 202.642.7961 >> w: www.blazegraph.com >> >> Blazegraph products help to solve the Graph Cache Thrash to achieve large >> scale processing for graph and predictive analytics. Blazegraph is the >> creator of the industry’s first GPU-accelerated high-performance database >> for large graphs, has been named as one of the “10 Companies and >> Technologies to Watch in 2016” <http://insideanalysis.com/2016/01/20535/>. >> >> >> Blazegraph Database <https://www.blazegraph.com/> is our ultra-high >> performance graph database that supports both RDF/SPARQL and Apache >> TinkerPop™ APIs. Blazegraph GPU >> <https://www.blazegraph.com/product/gpu-accelerated/> andBlazegraph DAS >> <https://www.blazegraph.com/product/gpu-accelerated/>L are disruptive >> new technologies that use GPUs to enable extreme scaling that is thousands >> of times faster and 40 times more affordable than CPU-based solutions. >> >> CONFIDENTIALITY NOTICE: This email and its contents and attachments are >> for the sole use of the intended recipient(s) and are confidential or >> proprietary to SYSTAP, LLC DBA Blazegraph. Any unauthorized review, use, >> disclosure, dissemination or copying of this email or its contents or >> attachments is prohibited. If you have received this communication in >> error, please notify the sender by reply email and permanently delete all >> copies of the email and its contents and attachments. >> > > > > -- > _______________ > Brad Bebee > CEO > Blazegraph > e: be...@bl... > m: 202.642.7961 > w: www.blazegraph.com > > Blazegraph products help to solve the Graph Cache Thrash to achieve large > scale processing for graph and predictive analytics. Blazegraph is the > creator of the industry’s first GPU-accelerated high-performance database > for large graphs, has been named as one of the “10 Companies and > Technologies to Watch in 2016” <http://insideanalysis.com/2016/01/20535/>. > > > Blazegraph Database <https://www.blazegraph.com/> is our ultra-high > performance graph database that supports both RDF/SPARQL and Apache > TinkerPop™ APIs. Blazegraph GPU > <https://www.blazegraph.com/product/gpu-accelerated/> andBlazegraph DAS > <https://www.blazegraph.com/product/gpu-accelerated/>L are disruptive new > technologies that use GPUs to enable extreme scaling that is thousands of > times faster and 40 times more affordable than CPU-based solutions. > > CONFIDENTIALITY NOTICE: This email and its contents and attachments are > for the sole use of the intended recipient(s) and are confidential or > proprietary to SYSTAP, LLC DBA Blazegraph. Any unauthorized review, use, > disclosure, dissemination or copying of this email or its contents or > attachments is prohibited. If you have received this communication in > error, please notify the sender by reply email and permanently delete all > copies of the email and its contents and attachments. > |