Re: Error connecting to cassandra through php/browser

2021-04-11 Thread Bowen Song
Temporarily disable SELinux (or set it to permissive mode) for troubleshooting is fine, but once you know SELinux is the cause, you should consider change the policies (often via setsebool or audit2allow) to allow the connection. Blindly disable SELinux does solve the issue, but it isn't a good

Re: Error connecting to cassandra through php/browser

2021-04-10 Thread Shabu Khan
Thank you Bowen. Much appreciated. You were right. I disabled the selinux and I got past that error/page. ## To temporarily disable selinux on centos 7 $ sudo setenforce 0 ## To permanently disable, set SELINUX=disabled in /etc/selinux/config -Shabu On Sun, Apr 11, 2021 at 1:26 AM Bowen Song

Re: Error connecting to cassandra through php/browser

2021-04-10 Thread Bowen Song
What do you mean "through the browser"? Is it a php page that runs on something like Apache/Nginx? If that's the case, and the same code and the same setup works on Ubuntu 18 but not CentOS 7, I would recommend you to have a look at the SELinux logs. On 10/04/2021 14:01, Shabu Khan wrote: Hel

Error connecting to cassandra through php/browser

2021-04-10 Thread Shabu Khan
Hello: When I try this from the command line it works: [root@localhost cassandra]# cqlsh -u testuser -p Welcome123! -k testapp Connected to Test Cluster at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 3.11.10 | CQL spec 3.4.4 | Native protocol v4] Use HELP for help. testuser@cqlsh:testapp> But throu

Re: Error Connecting to Cassandra

2015-10-29 Thread Eduardo Alfaia
ache.org>" >> Date: Wednesday, October 28, 2015 at 5:09 PM >> To: "user@cassandra.apache.org <mailto:user@cassandra.apache.org>" >> Subject: Re: Error Connecting to Cassandra >> >> I am using cassandra standalone, the machine is up, I was

Re: Error Connecting to Cassandra

2015-10-29 Thread Adam Holmberg
check the logs for indication that it’s failing. > > From: Eduardo Alfaia > Reply-To: "user@cassandra.apache.org" > Date: Wednesday, October 28, 2015 at 5:09 PM > To: "user@cassandra.apache.org" > Subject: Re: Error Connecting to Cassandra > > I am using c

Re: Error Connecting to Cassandra

2015-10-29 Thread Eduardo Alfaia
luster: Not executing scheduled task due to Scheduler shutdown}On 29 Oct 2015, at 06:11, Jeff Jirsa <jeff.ji...@crowdstrike.com> wrote:The cassandra system.log would be more usefulWhen Cassandra starts rejecting or dropping tcp connections, try to connect using cqlsh, and check the logs for indi

Re: Error Connecting to Cassandra

2015-10-28 Thread Jeff Jirsa
at 5:09 PM To: "user@cassandra.apache.org" Subject: Re: Error Connecting to Cassandra I am using cassandra standalone, the machine is up, I was monitoring the cassandra seeing the system.log but I didn’t see anything wrong. I’ve captured the flow of packets using wireshark an

Re: Error Connecting to Cassandra

2015-10-28 Thread Eduardo Alfaia
I am using cassandra standalone, the machine is up, I was monitoring the cassandra seeing the system.log but I didn’t see anything wrong.I’ve captured the flow of packets using wireshark and I’ve seen that the cassandra server is reset the connection with the client. I am sending the python app whi

Re: Error Connecting to Cassandra

2015-10-28 Thread Surbhi Gupta
Hi Eduardo, Is the cluster up and running? As your message says "Control connection failed to connect, shutting down Cluster" May be you can get some more info from the system.log. Thanks Surbhi On 28 October 2015 at 16:46, Eduardo Alfaia wrote: > Hi Gupta, > > I am running a simple python ap

Re: Error Connecting to Cassandra

2015-10-28 Thread Eduardo Alfaia
Hi Gupta, I am running a simple python application that isn’t heavy from point of view of access to cassandra. The application create a new keyspace, tables and do the load of data. The application is an example in python-driver folder. > On 29 Oct 2015, at 00:33, Surbhi Gupta wrote: > > Are

Re: Error Connecting to Cassandra

2015-10-28 Thread Surbhi Gupta
Are you running heavy load? I have seen these kinds error application team reporting to us in case when they have too many connection already setup and they are trying to connect more applications. Try to disconnect the applications which are not required and try again .. Hope this helps... On 28

Error Connecting to Cassandra

2015-10-28 Thread Eduardo Alfaia
Hi Guys, I am some problems of Connection Timeout in a random mode, that is, the application in python that I am using sometimes it does work very well sometimes not, I am getting this error: 015-10-28 19:49:05,286 [WARNING] cassandra.cluster: [control connection] Error connecting to 10.20.25

Re: error connecting to cassandra 0.7.3

2011-03-24 Thread Tyler Hobbs
al >>>> >>>>> >>>>> I am using the following code to create my client. >>>>> >>>>> tr = new TSocket(url, port); >>>>> TProtocol proto = new TBinaryProtocol(tr); >>>>> client = new Cassandra.Clien

Re: error connecting to cassandra 0.7.3

2011-03-24 Thread Anurag Gujral
t;> >>>> tr = new TSocket(url, port); >>>> TProtocol proto = new TBinaryProtocol(tr); >>>> client = new Cassandra.Client(proto); >>>> client.set_keyspace(this.keyspace); >>>> >>>> I am getting the errors I mentioned below >>>> Thanks

Re: error connecting to cassandra 0.7.3

2011-03-24 Thread Anurag Gujral
w TBinaryProtocol(tr); >>> client = new Cassandra.Client(proto); >>> client.set_keyspace(this.keyspace); >>> >>> I am getting the errors I mentioned below >>> Thanks >>> Anurag >>> >>> >>> -- Forwarded message

Re: error connecting to cassandra 0.7.3

2011-03-24 Thread Anurag Gujral
col(tr); >> client = new Cassandra.Client(proto); >> client.set_keyspace(this.keyspace); >> >> I am getting the errors I mentioned below >> Thanks >> Anurag >> >> >> -- Forwarded message ------ >> From: Anurag Gujral >> Date: Thu, M

Re: error connecting to cassandra 0.7.3

2011-03-24 Thread ruslan usifov
> client = new Cassandra.Client(proto); > client.set_keyspace(this.keyspace); > > I am getting the errors I mentioned below > Thanks > Anurag > > > -- Forwarded message -- > From: Anurag Gujral > Date: Thu, Mar 24, 2011 at 1:26 AM > Subject: error connecting

error connecting to cassandra 0.7.3

2011-03-24 Thread Anurag Gujral
-- From: Anurag Gujral Date: Thu, Mar 24, 2011 at 1:26 AM Subject: error connecting to cassandra 0.7.3 To: user@cassandra.apache.org I am using cassandra-0.7.3 and thrift-0.0.5,I wrote a java client using thrift 0.0.5 when I try to connect to local cassandra server I get the following error ERROR

error connecting to cassandra 0.7.3

2011-03-24 Thread Anurag Gujral
I am using cassandra-0.7.3 and thrift-0.0.5,I wrote a java client using thrift 0.0.5 when I try to connect to local cassandra server I get the following error ERROR com.bluekai.cassandra.validation.ValidationThread - Failed to connect to 127.0.0.1. org.apache.thrift.transport.TTransportException: