cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thamizh <>
Subject Reg File upload to cassandra - connection refused error
Date Thu, 18 Aug 2011 12:37:15 GMT
Hi All,

This is regarding help to resolve "connection refused error" on Cassandra client API.

I have installed cassandra-0.8.4 on three machines and tried to upload a file from HDFS to
Cassandra by Hadoop map-reduce program and have caught up "connection refused" error.

But, the same code is working fine on single node.

1. Here are configuration steps that has been updated on "cassandra.yaml"
seeds: "lab02,lab03,lab04"

2. KS & CF creation commands,
create keyspace info_table
    with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy'
    and strategy_options = [{replication_factor:3}];
use ip_info_table;
create column family info_0 with comparator = UTF8Type and subcomparator = UTF8Type and column_type
= 'Super' and key_validation_class = UTF8Type;

3. Error:
11/08/18 04:50:08 INFO mapred.JobClient:  map 100% reduce 0%
11/08/18 04:50:21 INFO mapred.JobClient:  map 100% reduce 11%
11/08/18 04:50:24 INFO mapred.JobClient:  map 100% reduce 22%
11/08/18 04:50:30 INFO mapred.JobClient:  map 100% reduce 33%
11/08/18 04:50:33 INFO mapred.JobClient:  map 100% reduce 66%
11/08/18 04:50:39 INFO mapred.JobClient: Task Id : attempt_201104211044_0702_r_000000_2, Status
: FAILED org.apache.thrift.transport.TTransportException:
Connection refused
    at org.apache.cassandra.hadoop.ColumnFamilyRecordWriter$
Caused by: org.apache.thrift.transport.TTransportException: Connection
    at org.apache.cassandra.hadoop.ColumnFamilyOutputFormat.createAuthenticatedClient(
    at org.apache.cassandra.hadoop.ColumnFamilyRecordWriter$
Caused by: Connection refused
    at Method)

When I issued "bin/nodetool -h localhost ring" command, it displays all the nodes. 

Kindly help me to resolve the issue.

View raw message