The guide was tested with Solr 4.0 but I don't think that is your issue
as you aren't at that stage yet.

Do you have a ${APACHE_NUTCH_HOME}/conf/gora.properties file? Does it
look like below except with MyUserName and MyPassword changed.



# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version
2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#gora.datastore.default=org.apache.gora.mock.store.MockDataStore
#gora.datastore.autocreateschema=true


###############################
# MySQL properties            #
###############################
gora.sqlstore.jdbc.driver=com.mysql.jdbc.Driver
gora.sqlstore.jdbc.url=jdbc:mysql://localhost:3306/nutch?createDatabaseI
fNotExist=true
gora.sqlstore.jdbc.user=MyUserName
gora.sqlstore.jdbc.password=MyPassword


###############################
# Default SqlStore properties #
###############################

#gora.sqlstore.jdbc.driver=org.hsqldb.jdbc.JDBCDriver
#gora.sqlstore.jdbc.url=jdbc:hsqldb:hsql://localhost/nutchtest
#gora.sqlstore.jdbc.user=sa
#gora.sqlstore.jdbc.password=

################################
# Default AvroStore properties #
################################

# gora.avrostore.codec.type=BINARY||JSON
# gora.avrostore.output.path=file:///tmp/gora.avrostore.test.output

################################
# DatafileAvroStore properties #
################################
# DataFileAvroStore is file based store which uses Avro's 
# DataFile{Writer,Reader}'s as a backend. This datastore supports 
# mapreduce.

# gora.datafileavrostore.###=

#########################
# HBaseStore properties #
#########################
# HBase requires that the Configuration has a valid
"hbase.zookeeper.quorum"
# property. It should be included within hbase-site.xml on the
classpath. When
# this property is omitted, it expects Zookeeper to run on
localhost:2181.

# To greatly improve scan performance, increase the hbase-site
Configuration
# property "hbase.client.scanner.caching". This sets the number of rows
to grab
# per request.

# HBase autoflushing. Enabling autoflush decreases write performance. 
# Available since Gora 0.2. Defaults to disabled.
# hbase.client.autoflush.default=false

#############################
# CassandraStore properties #
#############################

# gora.cassandrastore.servers=localhost:9160

#######################
# MemStore properties #
#######################
# This is a memory based {@link DataStore} implementation for tests.

# gora.memstore.###=

############################
# AccumuloStore properties #
############################
#gora.datastore.default=org.apache.gora.accumulo.store.AccumuloStore
#gora.datastore.accumulo.mock=true
#gora.datastore.accumulo.instance=a14
#gora.datastore.accumulo.zookeepers=localhost
#gora.datastore.accumulo.user=root
#gora.datastore.accumulo.password=secret


-----Original Message-----
From: pencil [mailto:[email protected]] 
Sent: Tuesday, August 14, 2012 11:39 AM
To: [email protected]
Subject: gora.properties not found NullPointer

root:/opt/nutch/runtime/local# bin/nutch crawl urls -depth 3 -topN 5
12/08/14 02:31:52 WARN store.DataStoreFactory: gora.properties not
found, properties will be empty.
12/08/14 02:31:52 WARN store.DataStoreFactory: gora.properties not
found, properties will be empty.
Exception in thread "main" org.apache.gora.util.GoraException:
java.io.IOException: java.lang.NullPointerException
        at
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.
java:167)
        at
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.
java:135)
        at
org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:6
9)
        at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:243)
        at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:68)
        at org.apache.nutch.crawl.Crawler.run(Crawler.java:136)
        at org.apache.nutch.crawl.Crawler.run(Crawler.java:250)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.nutch.crawl.Crawler.main(Crawler.java:257)
Caused by: java.io.IOException: java.lang.NullPointerException
        at
org.apache.gora.sql.store.SqlStore.getConnection(SqlStore.java:747)
        at
org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:160)
        at
org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFact
ory.java:102)
        at
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.
java:161)
        ... 8 more
Caused by: java.lang.NullPointerException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at
org.apache.gora.sql.store.SqlStore.getConnection(SqlStore.java:735)
        ... 11 more


I was following this guide here and I came across this error above

http://nlp.solutions.asia/?p=180

Additional Info : 
Ubuntu 10.04
Nutch 2.0
Solr 3.6.1



--
View this message in context:
http://lucene.472066.n3.nabble.com/gora-properties-not-found-NullPointer
-tp4001045.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Reply via email to