.wrap{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
- sudo add-apt-repository ppa:webupd8team/java
- sudo apt-get update
- sudo apt-get install oracle-java8-set-default
- java -version
Output
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
22x to match the latest version. For example, use 23x if Cassandra 2.3 is the latest version:
- echo "deb http://www.apache.org/dist/cassandra/debian 22x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
- echo "deb-src http://www.apache.org/dist/cassandra/debian 22x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
- gpg --keyserver pgp.mit.edu --recv-keys F758CE318D77295D
- gpg --export --armor F758CE318D77295D | sudo apt-key add -
- gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00
- gpg --export --armor 2B5C1B00 | sudo apt-key add -
- gpg --keyserver pgp.mit.edu --recv-keys 0353B12C
- gpg --export --armor 0353B12C | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install cassandra
- sudo service cassandra status
Output
* could not access pidfile for Cassandra
- sudo nano +60 /etc/init.d/cassandra
/etc/init.d/cassandra
CMD_PATT="cassandra.+CassandraDaemon"
/etc/init.d/cassandra
CMD_PATT="cassandra"
- sudo reboot
- sudo shutdown -r now
- sudo service cassandra status
Output
* Cassandra is running
- sudo nodetool status
Output
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns Host ID Rack
UN 127.0.0.1 142.02 KB 256 ? 2053956d-7461-41e6-8dd2-0af59436f736 rack1
Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless
cqlsh.
- cqlsh
Output
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.2.2 | CQL spec 3.3.1 | Native protocol v4]
Use HELP for help.
cqlsh>
exit to quit:| small_rand = [*('a'..'z')].shuffle |
| number_rand = [*('0'..'9')].shuffle |
| cap_rand = [*('A'..'Z')].shuffle |
config.generators do |g|
g.test_framework :rspec,
:fixtures => true,
:view_specs => false,
:helper_specs => false,
:routing_specs => false,
:controller_specs => true,
:request_specs => true
g.fixture_replacement :factory_girl, :dir => "spec/factories"
end
Git revert commit_id -m 1 this command willl revert last commit Git revert commit_id -m 2 this command will revert second commit with same...