Brief introductionSpark SQL provides JDBC connectivity, which is useful for connecting business intelligence (BI) tools to a spark cluster And for sharing a cluster across multipleusers. The JDBC server runs as a standalone Spark driver program The can is shared by multiple clients. Any client can cache tables in memory, query them, and so on and the cluster reso
Linux XMPP server Tigase (Spark client test), xmpptigase
Tigase is an XMPP server developed based on Java. Similar to Openfire, Tigase can be used to build an Instant Messaging (IM) platform.
1. Preparation
Before installing Tigase, you must first prepareJava environmentAndDatabase (MySQL is used in this article).
Tigase download: https://projects.tigase.org/proj
To see the next simplest example.
1. Increase in Pom.xml
2. Create a new class
Import static Spark. spark.*;
public class HelloWorld {public static void Main (string[] args) {Get ("/hello", (req, res)-> "Hello World");}}Run HelloWorld directly, visit Http://localhost:4567/hello, and the page will show Hello World
Even Java can write so concise ...
Two.
directory after tigase is decompressed; otherwise, the following error will be reported:
Loading schema
Method 2:
In addition to running the scripts/db-create-mysql.sh script, you can also directly execute the database/mysql-schema-5-1. SQL file to create the database:
Mysql-h127.0.0.1-uroot-p123456
After the database is created, go to MySQL to check whether it is successfully created:
4. Start the Tigase Server
Run scripts/tigase. sh to start the T
Spark build cluster is cumbersome, need more content, here mainly from CentOS, Hadoop, Hive, ZooKeeper, Kafka of the server environment to start speaking. The construction of CentOS is not specifically said, mainly on the cluster configuration.Environment Building software package As I was directly took three off-the-shelf centos 5.6 system to build, so the CentOS build does not say, there is a need to sel
First of all, the last week to do a few days to work hard, has been using ejabberd, this time for opnefire, some people say opnefire with the new XMPP protocol incompatible, and later replaced by Ejabberd,Github on the demo, mainly link time, account name login is not correct, will lead to login authentication failure, first you need to create a test1 account in the background, the server host named Admin,This account is fully stitched up to be called
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.