Kushan,

       I guess its not able to find the config.properties file
when you deploy the topology. How are you packaging it. One way
I think of is to pass it as part of resources and where you
calling properties.load() in your topology.

-Harsha





On Wed, Aug 20, 2014, at 02:20 PM, Kushan Maskey wrote:

I am quite new to cluster environment and so is the entire
concept of sotrm/kafka. I have everything running as it should.
But I am struggling to read config.properties file that has
config information to Kafka/Cassandra/Solr/Couch databases. I
created a condif.properties file with all these information. I
load the config file on the topology. I set the properties as a
static variable in a class. Bolts call CassandraClient class
that I wrote to load any data that comes to KafkaSpout.
CassandraClient gets the cassandra host and other information
from the properties file.

This works perfectly fine locally. But when I deployed it on
the server, all these config variables are null, meaning that
cassandra host and other information are all null. If anyone
has any idea how to tackle this would be really great. Thanks.

--
Kushan Maskey

Reply via email to