cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "priya swaiin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-11581) Cassandra connection failed
Date Fri, 15 Apr 2016 06:14:25 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-11581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

priya swaiin updated CASSANDRA-11581:
-------------------------------------
    Description: 
I am not able to connect to cassandra which installed in VM.
Can anyone help me out  to resolve the below issue ?

Cluster cluster = Cluster.Builder().AddContactPoint("127.0.0.1").Build();
                 Metadata metadata = cluster.Metadata;
                 ISession session = cluster.Connect();// ("demo");
                 session.Execute("insert into emp (emp_id,emp_name,emp_phone) values (6, 'suman','12345678'
)");
                 Console.WriteLine("Save secess");
                Console.Read();



  was:
I am not able to connect to cassandra which installed in VM.
Can anyone help me out  to resolve the below issue ?

Cluster cluster = Cluster.Builder().AddContactPoint("127.0.0.1").Build();
                 Metadata metadata = cluster.Metadata;
                 ISession session = cluster.Connect();// ("demo");
                 session.Execute("insert into emp (emp_id,emp_name,emp_phone) values (6, 'somu','12345678'
)");
                 Console.WriteLine("Save secess");
                Console.Read();




> Cassandra connection failed
> ---------------------------
>
>                 Key: CASSANDRA-11581
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11581
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: priya swaiin
>
> I am not able to connect to cassandra which installed in VM.
> Can anyone help me out  to resolve the below issue ?
> Cluster cluster = Cluster.Builder().AddContactPoint("127.0.0.1").Build();
>                  Metadata metadata = cluster.Metadata;
>                  ISession session = cluster.Connect();// ("demo");
>                  session.Execute("insert into emp (emp_id,emp_name,emp_phone) values
(6, 'suman','12345678' )");
>                  Console.WriteLine("Save secess");
>                 Console.Read();



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message