This article is about configuration Ubuntu (Linux) for DataStax Enetrpise. DataStax Enterprise is a big data platform built on Apache Cassandra that manages real-time, analytics, and enterprise search data. DataStax Enterprise leverages Cassandra, Apache Hadoop, and Apache Solr to shift focus from the data infrastructure to using data strategically.
For a Ubuntu (Linux) configuration for DataStax Enetrpise we need to install: OpenSSH server, Java, JCE, curl. Also, we should set static IP address and hostname, making it easier to identify resources on a network. The following section will explain how to properly configure system for name resolution using DNS, static hostname records and install the necessary software.
1. SSH server installation
SSH is a method of securely communicating with another computer via connection encrypted. This means if a third party tries to intercept the information being transferred, it would appear scrambled and unreadable.
1.1 Install
OpenSSH server:
$sudo apt-get update
$sudo apt-get install openssh-server
1.2 First, make a
backup of your sshd_config file by copying
it to your home directory, or by making a read-only copy in /etc/ssh by doing:
1.1 Install OpenSSH server:
$sudo apt-get update
$sudo apt-get install openssh-server1.2 First, make a backup of your sshd_config file by copying it to your home directory, or by making a read-only copy in /etc/ssh by doing:
$ sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults
$ sudo chmod a-w /etc/ssh/sshd_config.factory-defaults
$ sudo chmod a-w /etc/ssh/sshd_config.factory-defaults
1.3 Restart
ssh:
1.3 Restart ssh:
$ sudo restart ssh
$ sudo restart ssh
More
information: ssh installation
2. Java installation
Java is a technology originally developed by Sun Microsystems, and acquired by Oracle. Oracle Java is the proprietary, reference implementation for Java.
2.1 Before
you install it, remove OpenJDK, if you have it installed:
2.1 Before you install it, remove OpenJDK, if you have it installed:
$ sudo apt-get purge openjdk*
$ sudo apt-get purge openjdk*
2.2 Add the PPA:
2.2 Add the PPA:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo add-apt-repository ppa:webupd8team/java
2.3 Update the repo index:
2.3 Update the repo index:
$ sudo apt-get update
$ sudo apt-get update
2.4 Install Java:
2.4 Install Java:
$ sudo apt-get install oracle-java7-installer
$ sudo apt-get install oracle-java7-installer
More
information: Installation Java
3. JCE installation
The Java Cryptography Extension (JCE) is an officially released Standard Extension to the Java Platform. JCE provides a framework and implementation for encryption, key generation and key agreement, and Message Authentication Code (MAC) algorithms. JCE supplements the Java platform, which already includes interfaces and implementations of message digests and digital signatures.
3.1 Go
to the Oracle Java SE download page
http://www.oracle.com/technetwork/java/javase/downloads/index.html
3.2 After
scrolling down, under "Additional Resources" section you will find
"Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy
File"
3.3 Download
the version that matches your installed
JVM E.g. UnlimitedJCEPolicyJDK7.zip
3.4 Unzip
the downloaded zip
3.5 Copy
local_policy.jar and US_export_policy.jar to the $JAVA_HOME/jre/lib/security
(Note: these jars will be already there so you have to overwrite them)
3.6 Then
restart your application to get rid of this exception.
More
Information: how to install java cryptography
4.
Curl installation
Curl is a command line tool for transferring data with URL syntax.
4.1 Install
curl:
$sudo apt-get update
$sudo apt-get install curl
$sudo apt-get install curl
5. Set hostname
5.1 Change
hostname:
5.1 Change hostname:
$ sudo hostname your-new-name
$ sudo hostname your-new-name
For example we are using:
$ sudo hostname LinuxCCM
$ sudo hostname LinuxCCM
5.2 Edit
file etc/hosts
5.2 Edit file etc/hosts
$ sudo gedit /etc/hosts
$ sudo gedit /etc/hosts
and write down your hostname to the appropriate line:
127.0.1.1 your-old-hostname
127.0.1.1 your-old-hostname
Confirm settings:
sudo /etc/init.d/hostname.sh start
sudo /etc/init.d/hostname.sh start
6. Configure network settings
6.1 If you want set static address on ubuntu go to:
System -> Preferences -> Network Connections -> select Auto eth0 -> Edit -> select IPv4 Settings tab -> select Method: Manual -> Add (we using Adress:192.168.1.1 Netmask:255.255.255.0 Gateway: 0.0.0.0 DNS server 192.168.1.200 Search domains: cognet.local)
If you have
Ubuntu 12.04 or later:
a. Edit the interfaces file:
sudo /etc/init.d/hostname.sh start
$sudo nano /etc/network/interfaces
sudo /etc/init.d/hostname.sh start
$sudo nano /etc/network/interfaces
1 Example /etc/network/interfaces file |
b.
Remove the /etc/resolv.conf
$sudo rm –r /etc/resolv.conf
$sudo rm –r /etc/resolv.conf
c.
Create a new /etc/resolv.conf fil
c.
Create a new /etc/resolv.conf fil
$sudo nano /etc/resolv.conf
$sudo nano /etc/resolv.conf
2 Example /etc/resolv.conf file |
$sudo chattr +i /etc/resolv.conf
$sudo chattr +i /etc/resolv.conf
with this +i flag, even the root can't touch this file. But if you
want to change the nameserver, this can be done by changing:
with this +i flag, even the root can't touch this file. But if you
want to change the nameserver, this can be done by changing:
sudo chattr -i /etc/resolv.conf
sudo chattr -i /etc/resolv.conf
then add your new nameserver.
then add your new nameserver.
6.2 If you use virtual machine
6.2.1 Set Network Adapter on Bridged (as in the image below)
3 Virtual machine settings |
6.2.2 Set static IP on adapter VM:
Control Panel -> Network and Internet -> Network and Sharing
Center -> select Connections: for example: VMvare Network adapter VMnet1
-> Properties -> TCP/IPv4 -> Properties -> select “Use the
following IP address: (we using: IP address: 192.168.1.100 subnetmask:255.255.255.0)
4 Network settings |
6.3 Check
the correctness of the settings (using program nslookup)
6.3.1 Run
command line (ctrl + alt + T)
6.3.2 Type
nslookup name_server (for example: nslookup cogserver02)
5 result nslookup |
Cognitum is also a partner of DataStax, a major Cassandra vendor that provides worldwide training for Cassandra and Enterprise level appliances: DataStax Enterprise combining Cassandra, Hadoop, Hive, Solr into single solution.
Success at the workplace is a key concern for workers in an organization. tunnel rush
ReplyDeleteAngesichts der vielen anderen Verpflichtungen war es schwierig für mich, Zeit für meine Hausaufgaben zu finden. Ich beschloss, online nach Hilfe zu suchen, und fand https://akadhilfe24.de/hausarbeit-schreiben-lassen/. Diese Seite bot mir verschiedene Boni an, wie z. B. eine kostenlose Plagiatsprüfung und Rabatte bei Folgebestellungen. Dank dieses Dienstes habe ich viel Zeit gespart und konnte sie für andere wichtige Dinge nutzen.
ReplyDeleteWith the help of our knowledgeable guide, learn how to configure Linux for DataStax Enterprise. Utilize useful advice and techniques to help your database reach its maximum potential. I appreciate you offering such excellent content. I learned something from your blog. Keep the word going.
ReplyDeletenew york ny divorce lawyers