How to configure openfire to connect mysql cluster - openfire

I want the high availability of database for my Openfire server. Hence, I have successfully created a mysql cluster. But I am not able to configure Openfire to use that mysql cluster.
I have searched about it but not able to find much except using the following connection string : "jdbc:mysql:loadbalance://" + hosts + "/test".
But this does not seems to work.
Please help me to configure my Openfire server to use mysql cluster. Any kind of help or suggestions will be appreciated. Thanks in advance.

Related

FIWARE rules setting to connect remotly

I have watched a tutorial to launch a VM and connet to it remotly, but when I have to configure the rules to open SSH 22 I haven't succeed. Someone could help to configure correctly the paramenters. Thank so much in advance.
This is the configuration I have
That's the way you should do. And the other thing you need to do is assigning a floating-ip your Virtual Machine.

Apache Airflow unable to establish connect to remote host via FTP/SFTP

I am new to Apache Airflow and so far, I have been able to work my way through problems I have encountered.
I have hit a wall now. I need to transfer files to a remote server via sftp. I have not had any luck doing this. So far, I have gotten S3 and Postgres/Redshift connections via their respective hooks to work in various DAGs. I have been able to use the FTPHook with success testing on my local FTP server, but have not been able to figure out how to use SFTP to connect to a remote host.
I am able to connect to the remote host via SFTP with FileZilla, so I know my credentials are correct.
Through Google searching I have found the SFTPOperator, but am not able to figure out how to use it. I have also found FTPSHook, but still I have not been able to get it to work.
I keep getting the error nodename nor servname provided, or not known or a general Operation timed out in my Airflow logs.
Can someone point me in the right direction? Should I be using the FTPSHook with SSH or FTP Airflow Conn Type? Or do I need to utilize the SFTPOperator? I am also confused as to how I am supposed to setup the credentials in my Airflow connections. Do I use the SSH profile or FTP?
If I can provide any more additional info that may help, please let me know.
Cheers!
SFTPOperator is using ssh_hook underhood to open sftp transport channel that serves as a basis for file transfer. You can either configure ssh_hook by yourself or provide connection id via ssh_conn_id.
op = SFTPOperator(
task_id="test_sftp",
ssh_conn_id="my_ssh_connection",
local_filepath="",
remote_filepath="",
operation=SFTPOperation.PUT,
dag=dag
)

Connect to Cassandra via Kundera using SSL

We are using Kundera to connect to Cassandra, which is working just fine. Now we had to move Cassandra to a distant server what required to encrypt the connections. There is no problem using native Cassandra driver, however we have no clue, how to do that with Kundera.
There is a complete lack of documentation. Could anyone help?

Apache Zeppelin + EMR(Spark) Cluster for opening the firewall

I tried to use apache zeppelin with EMR(Spark) Cluster. I get some requirements for using apache zeppelin + EMR cluster with opening firewall. In the workplace, there is the static ip which is blocked by the firewall. As you know,
EMR clusters should change their IP and DNS name every time when they create with aws cli command. So do you know how to connect apache zeppelin server(EC2 instance) with the EMR cluster using the fixed IP?
Thanks in advance.
I don't understand your question fully. Let me try to answer this part of question: "So do you know how to connect apache zeppelin server(EC2 instance) with the EMR cluster using the fixed IP?"
This should be possible by attaching an elastic ip with EMR clusters' master using: http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-cli-commands.html#elastic-ip.
You can also try qubole's managed clusters and support for spark+zeppelin. Qubole takes care of this by providing you a fixed end point to access your zeppelin notebooks.
Disclaimer: I work for Qubole
Finally I succeed to solve this problem or requirement using socat.
socat TCP-LISTEN:8080,fork TCP:$EMR_CLUSTER_NAME:8080
socat TCP-LISTEN:8081,fork TCP:$EMR_CLUSTER_NAME:8081
Also check the script(install-apache-zeppelin-on-amazon-emr.sh) which I revised some codes and used socat instead of using ssh tunneling.

OpenFire - Google Talk Federation

I have a OpenFire 3.7.1 Server configured on im.domain.com. I want to Google Talk Federation on this server, so that my users can chat with other GTalk users.
This is my SRV Records on GoDaddy.
I am very new to OpenFire & Jabber. I've a OpenFire which is configured on im.domain.com which runs on AWS EC2 Micro Instance.
But when I test this using http://kingant.net/check_xmpp_dns/?h=jabber.org it fails.
Please help me, Thanks in advance.
I've solved problem. The problem was with the DNS Records. I have changed the "Name" to "im" and renamed service to "_xmpp-client" from "_jabber".