Thanks for your help.
Here is what I did.
1) shutdown stanbol
2) remove the stanbol/indexes/default/dbpedia-{today} folder
3) create a symlink to dbpedia.solrindex.zip under stanbol/datafiles
3) find the dbpedia.solrindex.ref file under the stanbol working directory
and delete it.
4) start stanbol and got errors though got "startup completed" at last
*ERROR* [org.osgi.service.cm.ManagedServiceFactory, id=32, bundle=93]:
Updating configuration property org.apache.sling.commons.log.names caused a
problem: Category org.apache.solr already defined by configuration
org.apache.sling.commons.log.LogManager.factory.config.b1f5ba91-406a-4adf-8d8c-4e22f8b202e3
org.osgi.service.cm.ConfigurationException:
org.apache.sling.commons.log.names : Category org.apache.solr already
defined by configuration
org.apache.sling.commons.log.LogManager.factory.config.b1f5ba91-406a-4adf-8d8c-4e22f8b202e3
        at
org.apache.sling.commons.log.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:39)
        at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1366)
        at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)
        at java.lang.Thread.run(Thread.java:662)
Caused by:
org.apache.sling.commons.log.internal.config.ConfigurationException:
        at
org.apache.sling.commons.log.internal.slf4j.LogConfigManager.updateLoggerConfiguration(LogConfigManager.java:453)
        at
org.apache.sling.commons.log.internal.config.LoggerManagedServiceFactory.updated(LoggerManagedServiceFactory.java:37)
        ... 3 more
5) a small index (less than 1G) is generated under the
stanbol/indexes/default/dbpedia-{today} folder
6)  when I did
curl "
http://localhost:8080/entityhub/site/dbpedia/entity?id=http://dbpedia.org/resource/Paris";,
once again I got the exception
"org.apache.stanbol.entityhub.servicesapi.yard.YardException: The SolrIndex
'dbpedia' for SolrYard 'dbpedia default data index' is currently not
active!"
7) search for  the dbpedia.solrindex.ref file again and the content is like
"
#Thu Feb 14 08:44:48 PST 2013
Index-Name=dbpedia
Archive=dbpedia.solrindex.zip
State=UNINITIALISED
Index-Archive=dbpedia.solrindex.zip
Server-Name=default
"

Please help again.

Thanks,
Xiaoyan


On Tue, Feb 12, 2013 at 12:05 AM, Rupert Westenthaler <
[email protected]> wrote:

> HI
>
> > So my question is whether I MUST keep the ~12G zip file under datafiles
> > folder.
>
> You can delete it as soon as the initialization has completed - what
> was not the case because of the "IOException: No space left on
> device".
>
> I usually do only create a symlink for the {name}.solrindex.zip file
> in the stanbol/datafiles directory instead of physically copying the
> file in that directory. You can even (1) start Stanbol go init the
> default index (2) shutdown Stanbol (3) delete the
> /stanbol/indexes/default/dbpedia-{date} folder and (4) create a
> symlink to an other location with the already extracted
> {name}.solrindex.zip.
>
>
> BTW: to force the reinitialization after an error like that you might
> need to delete the "dbpedia.solrindex.ref" file (just use 'find .
> -name "dbpedia.solrindex.ref"' in the stanbol working dir to find it).
> Make sure that Stanbol is not running when you do this.
>
> best
> Rupert
>
> On Tue, Feb 12, 2013 at 12:59 AM, xiaoyan yu <[email protected]> wrote:
> > I'd like to use a large dbpedia dataset with entityHub in my vm with ~50G
> > disk space.
> > I created one (~12G) by following
> >
> https://github.com/apache/stanbol/tree/trunk/entityhub/indexing/dbpedia#entity-typesand
> > put it under the datafiles folder.
> > After updating the dbpedia bundle from the admin console, I am informed
> of
> > no enough disk space by the system.
> > It seems that another ~26G index is automatically created under my
> launcher
> > folder stanbol/indexes/default.
> >
> > Now I deleted the ~12G zip file from the datafiles folder in hopes that
> > stanbol won't use it once ~26G index is generated.
> >
> > However, when I did
> > curl "
> >
> http://localhost:8080/entityhub/site/dbpedia/entity?id=http://dbpedia.org/resource/Paris
> > ",
> > I got the exception
> > "org.apache.stanbol.entityhub.servicesapi.yard.YardException: The
> SolrIndex
> > 'dbpedia' for SolrYard 'dbpedia default data index' is currently not
> > active!"
> >
> > So my question is whether I MUST keep the ~12G zip file under datafiles
> > folder.
> >
> >
> > Thanks,
> > Xiaoyan
>
>
>
> --
> | Rupert Westenthaler             [email protected]
> | Bodenlehenstraße 11                             ++43-699-11108907
> | A-5500 Bischofshofen
>

Reply via email to