Re: Cache hits exposed by API
Thanks , I am really looking forward to the SolrInfoMBeanHandler . As of now I am working with the parsing idea . -- View this message in context: http://lucene.472066.n3.nabble.com/Cache-hits-exposed-by-API-tp930602p962654.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Cache hits exposed by API
I knew that the jsp page= http://localhost:8983/solr/admin/stats.jsp shows the different statistics but actually I am trying to read the hit rate of the solr cache's via a Java Code.That's why I asked if the same is exposed via Solr API's...Please share if you know about the same. Thanks ! -- View this message in context: http://lucene.472066.n3.nabble.com/Cache-hits-exposed-by-API-tp930602p930696.html Sent from the Solr - User mailing list archive at Nabble.com.
Cache hits exposed by API
This is just an enquiry.I just wanted to know if the cache hit rates of solr exposed via the API of solr? -- View this message in context: http://lucene.472066.n3.nabble.com/Cache-hits-exposed-by-API-tp930602p930602.html Sent from the Solr - User mailing list archive at Nabble.com.
Diiferences in avgRequestsPerSecond of Solr ..
hi , I am fectching the following details programatically : --- --- Name :: /replication Class :: org.apache.solr.handler.ReplicationHandler Version :: $Revision: 829682 $ Description :: ReplicationHandler provides replication of index and configuration files from Master to Slaves Stats ::handlerStart:1277797571859 requests:1 errors:0 timeouts:0 totalTime:0 avgTimePerRequest:0.0 avgRequestsPerSecond:16.129032 indexSize:19.29 KB indexVersion:1266984293138 generation:10 indexPath:C:\Apache Solr\apache-solr-1.4.0\example\example-DIH\solr\db\data\index isMaster:true isSlave:false confFilesToReplicate:schema.xml,stopwords.txt,elevate.xml replicateAfter:[commit, startup] replicationEnabled:true --- --- The stats.jsp page on http://localhost:8983/solr/db/admin/stats.jsp gives the following : handlerStart : 1277791396234 requests : 2 errors : 0 timeouts : 0 totalTime : 0 avgTimePerRequest : 0.0 avgRequestsPerSecond : 0.004224427 indexSize : 19.29 KB indexVersion : 1266984293138 generation : 10 indexPath : C:\Apache Solr\apache-solr-1.4.0\example\example-DIH\solr\db\data\index isMaster : true isSlave : false confFilesToReplicate : schema.xml,stopwords.txt,elevate.xml replicateAfter : [commit, startup] replicationEnabled : true .. notice that the avgRequestsPerSecond varies hugely !!! why is it so?? Im not doing any dataimport if that is any important and neither have I added any extra data ... and my solr home is set as -Dsolr.solr.home="./example-DIH/solr/" Please put in your views thanks !!! -- View this message in context: http://lucene.472066.n3.nabble.com/Diiferences-in-avgRequestsPerSecond-of-Solr-tp930245p930245.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: jmx issue with solr
Thanks for the info , using the above properties solved the issue . -- View this message in context: http://lucene.472066.n3.nabble.com/jmx-issue-with-solr-tp828478p829057.html Sent from the Solr - User mailing list archive at Nabble.com.
jmx issue with solr
Hi, I am trying to start solr with the following command : java -Dsolr.solr.home="./example-DIH/solr/" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=3000 On doing so an error is reported : Error: Password file read access must be restricted: C:\Program Files\Java\jdk1. 6.0_18\jre\lib\management\jmxremote.password The jmxremote.password file is there in the lib\management folder and the same has been set to read-only. still the error persists.I am using Windows XP SP3 Version 2002, just mentioning the same if its of any help. Please do put in your suggestions. -- View this message in context: http://lucene.472066.n3.nabble.com/jmx-issue-with-solr-tp828478p828478.html Sent from the Solr - User mailing list archive at Nabble.com.
solrDynamicMbeans access
hello, i need to access the solr mbeans displayed in jconsole to access the attributes of solr using codes( java) JMXServiceURL address = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://:/jmxrmi"); JMXConnector conn = JMXConnectorFactory.connect(address); MBeanServerConnection mbs = conn.getMBeanServerConnection(); now how do i create a solrMbean object to check on its attributes. -- View this message in context: http://lucene.472066.n3.nabble.com/solrDynamicMbeans-access-tp756593p756593.html Sent from the Solr - User mailing list archive at Nabble.com.
luke responses of solr
hi, lukeresponse api's in solr provide info about the maximum no of documents etc.. but does any one know how to get the same programatically.??? I have used the piece of code below: LukeResponse lukeResponse = new LukeResponse(); String indexDirectory = lukeResponse.getIndexDirectory(); System.out.println("index directory " + indexDirectory); NamedList indexInfo = lukeResponse.getIndexInfo(); System.out.println("index info " + indexInfo); Integer maxDoc = lukeResponse.getMaxDoc(); System.out.println("Maximum no of Documents " + maxDoc); but i am geting null values . how do i bind the luke with solr. p.s. i have registered the luke response handler in the solr-config.xml -- View this message in context: http://lucene.472066.n3.nabble.com/luke-responses-of-solr-tp742198p742198.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: cheking the size of the index using solrj API's
hi, I am using the piece of code given below ReplicationHandler handler2 = new ReplicationHandler(); System.out.println( handler2.getDescription()); NamedList statistics = handler2.getStatistics(); System.out.println("Statistics "+ statistics); The result that i am getting (ie the printed statment is : Statistics {handlerStart=1270469530218,requests=0,errors=0,timeouts=0,totalTime=0,avgTimePerRequest=NaN,avgRequestsPerSecond=NaN} But the Statistics consists of the other info too: org.apache.solr.handler.ReplicationHandler $Revision: 829682 $ ReplicationHandler provides replication of index and configuration files from Master to Slaves 1270463612968 0 0 0 0 NaN 0.0 19.29 KB 1266984293131 3 C:\solr\apache-solr-1.4.0\example\example-DIH\solr\db\data\index true false schema.xml,stopwords.txt,elevate.xml [commit, startup] true this is where the problem lies : i need the size of the index im not finding the API nor is the statistics printing out(sysout) the same. how to i get the size of the index -- View this message in context: http://n3.nabble.com/cheking-the-size-of-the-index-using-solrj-API-s-tp692686p697603.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Obtaining SOLR index size on disk
hi, I am using the piece of code given below ReplicationHandler handler2 = new ReplicationHandler(); System.out.println( handler2.getDescription()); NamedList statistics = handler2.getStatistics(); System.out.println("Statistics "+ statistics); The result that i am getting (ie the printed statment is : Statistics {handlerStart=1270469530218,requests=0,errors=0,timeouts=0,totalTime=0,avgTimePerRequest=NaN,avgRequestsPerSecond=NaN} But the Statistics consists of the other info too: org.apache.solr.handler.ReplicationHandler $Revision: 829682 $ ReplicationHandler provides replication of index and configuration files from Master to Slaves 1270463612968 0 0 0 0 NaN 0.0 19.29 KB 1266984293131 3 C:\solr\apache-solr-1.4.0\example\example-DIH\solr\db\data\index true false schema.xml,stopwords.txt,elevate.xml [commit, startup] true this is where the problem lies : i need the size of the index im not finding the API nor is the statistics printing out(sysout) the same. how to i get the size of the index -- View this message in context: http://n3.nabble.com/Obtaining-SOLR-index-size-on-disk-tp500095p697599.html Sent from the Solr - User mailing list archive at Nabble.com.
cheking the size of the index using solrj API's
hi, I need to monitor the index for the following information: 1. Size of the index 2 Last time the index was updated. Although I did an extensive search of the API's i cant find something which does the same( as mentioned above) please help -- View this message in context: http://n3.nabble.com/cheking-the-size-of-the-index-using-solrj-API-s-tp692686p692686.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: error while using the DIH handler
@ all Thanks all , the problem is resolved :-D its seems the solr which i downloaded was corrupt ( eer got corrupted ) so i reinstalled it and it worked fine thanks for ur suggestions .:handshake: Na_D wrote: > > @ Noble Paul : what exactlly do u mean by pasting the DIH part ??? > if that means specifing the handler then yes i did specify the handler in > the solrconfig.xml > > > > Noble Paul നോബിള് नोब्ळ्-2 wrote: >> >> can you paste the DIH part in your solrconfig.xml ? >> >> On Tue, Feb 23, 2010 at 7:01 PM, Na_D wrote: >>> >>> yes i did check the location of the data-config.xml >>> >>> its in the folder example-DIH/solr/db/conf >>> -- >>> View this message in context: >>> http://old.nabble.com/error-while-using-the-DIH-handler-tp27702772p2770.html >>> Sent from the Solr - User mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> - >> Noble Paul | Systems Architect| AOL | http://aol.com >> >> > > -- View this message in context: http://old.nabble.com/error-while-using-the-DIH-handler-tp27702772p27714095.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: error while using the DIH handler
@ Noble Paul : what exactlly do u mean by pasting the DIH part ??? if that means specifing the handler then yes i did specify the handler in the solrconfig.xml Noble Paul നോബിള് नोब्ळ्-2 wrote: > > can you paste the DIH part in your solrconfig.xml ? > > On Tue, Feb 23, 2010 at 7:01 PM, Na_D wrote: >> >> yes i did check the location of the data-config.xml >> >> its in the folder example-DIH/solr/db/conf >> -- >> View this message in context: >> http://old.nabble.com/error-while-using-the-DIH-handler-tp27702772p2770.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > > > -- > - > Noble Paul | Systems Architect| AOL | http://aol.com > > -- View this message in context: http://old.nabble.com/error-while-using-the-DIH-handler-tp27702772p27714087.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: error while using the DIH handler
yes i did check the location of the data-config.xml its in the folder example-DIH/solr/db/conf -- View this message in context: http://old.nabble.com/error-while-using-the-DIH-handler-tp27702772p2770.html Sent from the Solr - User mailing list archive at Nabble.com.
error while using the DIH handler
i tried using the DIH in solr using the steps as mentioned in : http://wiki.apache.org/solr/DataImportHandler#datasource http://wiki.apache.org/solr/DataImportHandler#datasource on running the command ::java -Dsolr.solr.home="./example-DIH/solr/" -jar start.jar i.e. when i use the DIH/example its gives an error %-| >>(below) ... HTTP ERROR: 500 Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to continue after configuration errors, change: false in null - org.apache.solr.common.SolrException: FATAL: Could not create importer. DataImporter config invalid at org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:121) at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486) at org.apache.solr.core.SolrCore.(SolrCore.java:588) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:210) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mortbay.start.Main.invokeMain(Main.java:183) at org.mortbay.start.Main.start(Main.java:497) at org.mortbay.start.Main.main(Main.java:115) Caused by: java.lang.RuntimeException: Can't find resource '/solr/data-config.xml' in classpath or './example-DIH/solr/db/conf/', cwd=/home/zaloni/Desktop/apache-solr-1.4.0/example at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:260) at org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:113) ... 28 more - java.lang.RuntimeException: Can't find resource '/solr/data-config.xml' in classpath or './example-DIH/solr/db/conf/', cwd=/home/zaloni/Desktop/apache-solr-1.4.0/example at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:260) at org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:113) at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486) at org.apache.solr.core.SolrCore.(SolrCore.java:588) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay