Datastax opscenter agents do not install

I am using my own version of cassandra at 127.0.1.1. I changed rpc_address as well as address to 127.0.1.1.

When I start Opscenter , I am asked to install agents , and I do this with the recommended Fix now option. But when I try to install it, it asks me for some Node ssh credentials. I do not know what it means.

Enter random credentials

Installation error

What are the correct credentials to enter here?

I tried adding a new user on Linux with root privileges and tried with that username, but it does not work. I manually tried to install install_agent.sh too, but it does not work.

Did I miss something?

EDIT:

address.yaml

 stomp_interface: 127.0.1.1 agent_rpc_interface: "127.0.1.1" cassandra-conf: /home/kaushaya/Dropbox/Work/ITNow/olderVersions/cassandra2.11/apache-cassandra-2.1.12/conf/cassandra.yaml stomp_port: 61620 jmx_host: 127.0.1.1 jmx_port: 7199 

cassandra.yaml

http://textuploader.com/57ivn

EDIT2:

for username and password I use my datastax credentials. For the secret key, I use the key in /etc/ssh/ssh_host_rsa_key.pub , as mentioned in @apesa. But still he cannot install agents.

Is the address.yaml file specified correctly?

EDIT 3:

As you can see in the following image, when the Opscenter thought is not related to agents, I still see clusters and tables in cassandra.

enter image description here

For sudo netstat -p | grep 127.0.1.1 sudo netstat -p | grep 127.0.1.1 I do not get output.

 xyz@ubuntu $ ps -ef | grep datastax-agent xyz@ubuntu $ ps -ef | grep cassandra 

the conclusion is this and this, respectively. In short, yes, I can see banks, and I think environmental variables too.

How did I start cassandra, you ask?

sudo ./bin/cassandra from the cassandra folder. After that, I use sparking to stream data from kafka to cassandra. But here it does not matter.

Even if it is not connecting to the agent the opscenter should still show the cassandra instance. Do you see your test_Cluster? Yes! I do!

Finally, nodetool status gives me the following:

 Datacenter: datacenter1 ======================= Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID Rack UN 127.0.1.1 58.94 MB 256 ? 367dd1c6-291d-4e57-a2b6-e04d74154a6f rack1 Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless 

What do I believe:

I'm not sure, but maybe my address.yaml wrong? I updated my address.yaml above, maybe I need to change something? Changing address.yaml gives me different outputs when running ./datastax-agent . Thanks.

EDIT4:

I tried everything that @apesa suggested, and here are the detailed script outputs. I still have the same problem.

Version:

 Opscenter: 5.2.4 datastax-agent: 5.2.4 Cassandra: 2.1.12 

Conclusion sudo netstat -p | grep: 9042

 tcp 0 0 localhost:38155 ganguly:9042 ESTABLISHED 15907/python2.7 tcp 0 0 localhost:38154 ganguly:9042 ESTABLISHED 15907/python2.7 tcp 0 0 localhost:38153 ganguly:9042 ESTABLISHED 15907/python2.7 tcp6 0 0 localhost:38176 ganguly:9042 ESTABLISHED 15951/java tcp6 0 0 localhost:38179 ganguly:9042 ESTABLISHED 15951/java tcp6 0 0 ganguly:9042 localhost:38154 ESTABLISHED 15720/java tcp6 0 0 ganguly:9042 localhost:38153 ESTABLISHED 15720/java tcp6 0 0 ganguly:9042 localhost:38179 ESTABLISHED 15720/java tcp6 0 0 ganguly:9042 localhost:38176 ESTABLISHED 15720/java tcp6 0 0 ganguly:9042 localhost:38155 ESTABLISHED 15720/java 

Conclusion sudo netstat -p | grep: 7199

is empty

Conclusion sudo netstat -p | grep: 61620

is empty

This is the console log when running sudo ./datastax-agent .

In short, this is the error line:

 ERROR [clojure-agent-send-off-pool-0] 2016-02-04 11:33:26,274 Can't \ connect to Cassandra (All host(s) tried for query failed (tried:\ /127.0.0.1:9042 \ (com.datastax.driver.core.TransportException: \ [/127.0.0.1:9042] Cannot connect))), retrying soon. 

But I do not know why it is trying to connect to cassandra at 127.0.0.1, since cassandra is running at 127.0.1.1. What have I done wrong here?

+6
source share
2 answers

There are several ways to install the DataStax agent from OpsCenter. Based on your IP address 127.0.1.1, you should use the Linux version for Debian. I know that he says "optional", but I could never work without the ssh private key. In this case, you must install the OpenSSH server using the following command

 xyz@ubuntu $ sudo apt-get install openssh-server 

Then follow these instructions to configure the SSH key, which you will then use to provide your credentials in the "fix agent" dialog box. The Datastax username / password for the DSE side is datastax / datastax unless you change it. This is what you need to enter for the username / password, and then also copy / paste the new SSH key into the private key field. The ssh key is in

 /etc/ssh/ssh_host_rsa_key.pub 

Once all the credentials are combined together, run the Installation Agents tool. If it is still not complete, you should check the datastax-agent folder in which you installed DSE and check if the jar file exists for the agent. It should be something like

 datastax-agent-5.2.4-standalone.jar 

You should also see the folder structure for the Agent, all directories bin, conf ... etc should be there. If everything is in place and your cassandra.yaml file is correct, you should be able to run the agent.

You can also do this manually by moving the correct directories and jar files into place, and then restarting the agent (s).

EDIT:

Looking at your last agent.log file, I would say this. A broken pipe error in Java refers to a connection that no longer works or is no longer available. Where he is absent from agent.log, he tries to contact opscenter. One of your connections is not configured or incorrectly configured. You also have another log for cassandra, which is usually located in / var / log / cassandra depending on how you installed cassandra. Comb it and make sure there are no errors during startup, warnings are good, but errors usually indicate a problem.

From now on, you have the following log files. Please note that the location of the files may differ from yours, depending on how you installed everything.

 /var/log/cassandra /var/log/datastax-agent /var/log/OpsCenter 

and you have the following commands to help you figure out what actually works and which port is connected. See below what these commands tell you.

 xyz@ubuntu $ sudo netstat -p | grep 127.0.1.1 

You should see at least the following ports bound to your 127.0.1.1 addr: 9042, 8888, 61620 and several others.

Also see the output of these two commands. If you don’t get anything, try running them as sudo. The output will depend on how you launched the banks.

 xyz@ubuntu $ ps -ef | grep datastax-agent xyz@ubuntu $ ps -ef | grep cassandra 

You should see all the downloaded jar files, as well as the environment variables that were set when you started cassandra and / or datastax-agent.

You can edit your post and explain how you started cassandra. those. as a service or from the command line?

In addition, from OpsCenter you can see test_cluster at 127.0.1.1:8888. If your request to fix agents simply leaves these dialog boxes, until you are on the main screen where the data center is located. Even if it does not connect to the agent, opscenter should still show an instance of cassandra. Do you see your test_cluster?

Finally, what do you get when you type this

 xyz@ubuntu $ nodetool status 

EDIT 2:

Based on your last edit, it seems like everything except the agent is up and running. So says nodetool, which is good. Also, since you see Keyspaces in OpsCenter, you are definitely connected to an executable instance of cassandra.

Thus, looking further, your datastax agent is still not connecting. Looking at your address.yaml file, I see a couple of possible problems. This is a simple standalone cassandra cluster with a single IP address of 127.0.1.1. Thus, the address 127.0.1.1 will be used in all configurations where the IP address or host is involved. I would make the following changes to the address.yaml file.

 stomp_interface: 127.0.1.1 cassandra-conf: /home/kaushaya/Dropbox/Work/ITNow/olderVersions/cassandra2.11/apache-cassandra-2.1.12/conf/cassandra.yaml stomp_port: 61620 

Leave the JMX parts as they are not needed and will be sent using opscenterd after connecting. Agent_rpc_interface is also not required in this installation.

There is also a cassandra-env.sh script, which is located in the cassandra / conf directory. this script is executed when cassandra starts. find the next line at the bottom of the script and uncomment it and add your host IP address 127.0.1.1 instead of <public name>

 # jmx: metrics and administration interface # # add this if you're having trouble connecting: JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=127.0.1.1" 

Finally, there is the cassandra utility registered HERE. You can pass several cli parameters to the cassandra shell during initialization. This specific below is useful when you want to start / restart the cassandra cluster after changing the IP or hostname. After you make these changes, you need to restart cassandra. In fact, you shoudl are restarting everything in that order. Cassandra, datastax-agent and then opscenter.

 xyz@ubuntu $ bin/cassandra -Dcassandra.load_ring_state=false 

After you make the changes and try to start the agent and it still does not work, you will need additional debugging information. Netstat returned false due to the fact that we connected to the grep utility. try the following as the ports are probably associated with your hostname as you are using 127.0.1.1. Run it for the following ports: 9042 ,: 7199, and: 61620. You are looking for your hostname associated with all these ports while cassandra is running.

 xyz@ubuntu $ sudo netstat -p | grep :9042 

Please also edit your question and add versions of OpsCenter and Datastax-Agent. It is important.

+1
source

You can try editing the address.yaml file of the datastax agent. It should be located in / var / lib / datastax -agent / conf /. In this file you will need to add the following line: stomp_interface: Also make sure stomp_port is set in the same file.

Link: OpsCenter 5.0 User Guide

Sabiha

0
source

All Articles