• Online Tools
  • - Calculators
    • Character Count
  • - Download
    • TikTok Download
    • DouYin Download
  • - Web Tools
    • BASE64
    • Base64 to Image
    • Image to Base64
    • URL Encoding
    • JavaScript
    • Timestamp
    • Unicode Converter
    • JSON Format
    • Modify Extension
    • Make List
    • CSS Optimizer
  • - Encryption Tools
    • MD5 Encryption
    • Random Generator
  • - Image Tools
    • Image Compression
    • QR Code Generator
    • QR Code Reader
    • Wallpaper Preview
  • - Info Sheets
    • Blood Type Heredity
    • Clothing Sizes
  • [email protected]
DopuBox
  • English
  • Español
  • Français
  • 日本語
  • 한국어
  • 简体中文
  • 繁體中文
全部 ニュース Meta Code 文化・アート
Centos 6.3 Cassandraデータベースのインストール経験の共有
2022-02-15

1>Java jdkのダウンロード:

ダウンロード先:https://www..net/softs/75615.html

私がここで使っているのはjdk-7 u 17-linux-i 586です。tar.gz

PS:これはログインしてからダウンロードできるので、登録した後、ログインしてからローカルにダウンロードしてから、ローカルコンピュータからVMに転送することをお勧めします。

2>ダウンロードが完了したら、jdkを解凍します。

      tar -zxvf jdk-7u17-linux-i586.tar.gz

3>解凍が完了したら、環境変数を設定します。

     vim /etc/profile

開いているファイルの最後に、次のコードを追加します。

PATH=$JAVA_HOME/bin:$PATH

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export JAVA_HOME

export PATH

export CLASSPATH

JAVA_HOME=/usr/local/jdk1.7.0_17

PS:JAVA_をHOMEの経路はすぐにすぐに変えて、さっき解凍したjdkのディレクトリディレクトリディレクトリに変えて、私のはjdk圧縮パッケージを/usr/localディレクトリの下に置いて、それから直接

ここで解凍したので、解凍したバッグもそのままこのカタログの下にあります【jdk 1.7.0_17】ので、JAVA_HOMEのパスは「/usl/local/jdk 1.7.0_17」

4>上記の手順の実行が完了したら、次のコマンドを実行します。

     source /etc/profile

 

5>上記の手順を実行し、次にjava jdkがインストールに成功したかどうかを見て、次のコマンドを実行します。

     java -version

[root@localhost ~]# java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode)
[root@localhost ~]#
ここで実行すると、次のように出力されます。 jdkのインストールに成功したことを説明します。ここのバージョンは1.7です。

cassandraのインストール

1>Cassandraのダウンロード:

アドレス:http://www.apache.org/dyn/closer.cgi?path=/cassandra/1.2.4/apache-cassandra-1.2.4-src.tar.gz

私がここで使っているバージョンはapache-cassandra-1.2.4-binです。tar.gz

2>ダウンロードが完了したら、直接解凍します。

      tar -zxvf apache-cassandra-1.2.4-bin.tar.gz

解凍が完了すると、apache-cassandra-1.2.4というディレクトリが得られます。

このディレクトリの下のbinディレクトリに入り、Cassandraを直接起動すればいいです。

      cd apache-cassandra-1.2.4/bin

      ./cassandra-f【cassandra起動】

[root@localhost bin]# ./cassandra
xss =  -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms505M -Xmx505M -Xmn100M -XX:+HeapDumpOnOutOfMemoryError -Xss180k
[root@localhost bin]#  INFO 08:42:11,803 Logging initialized
 INFO 08:42:11,925 32bit JVM detected.  It is recommended to run Cassandra on a 64bit JVM for better performance.
 INFO 08:42:11,930 JVM vendor/version: Java HotSpot(TM) Client VM/1.7.0_17
 INFO 08:42:11,932 Heap size: 519045120/520093696
 INFO 08:42:11,933 Classpath: ./../conf:./../build/classes/main:./../build/classes/thrift:./../lib/antlr-3.2.jar:./../lib/apache-cassandra-1.2.4.jar:./../lib/apache-cassandra-clientutil-1.2.4.jar:./../lib/apache-cassandra-thrift-1.2.4.jar:./../lib/avro-1.4.0-fixes.jar:./../lib/avro-1.4.0-sources-fixes.jar:./../lib/commons-cli-1.1.jar:./../lib/commons-codec-1.2.jar:./../lib/commons-lang-2.6.jar:./../lib/compress-lzf-0.8.4.jar:./../lib/concurrentlinkedhashmap-lru-1.3.jar:./../lib/guava-13.0.1.jar:./../lib/high-scale-lib-1.1.2.jar:./../lib/jackson-core-asl-1.9.2.jar:./../lib/jackson-mapper-asl-1.9.2.jar:./../lib/jamm-0.2.5.jar:./../lib/jbcrypt-0.3m.jar:./../lib/jline-1.0.jar:./../lib/json-simple-1.1.jar:./../lib/libthrift-0.7.0.jar:./../lib/log4j-1.2.16.jar:./../lib/lz4-1.1.0.jar:./../lib/metrics-core-2.0.3.jar:./../lib/netty-3.5.9.Final.jar:./../lib/servlet-api-2.5-20081211.jar:./../lib/slf4j-api-1.7.2.jar:./../lib/slf4j-log4j12-1.7.2.jar:./../lib/snakeyaml-1.6.jar:./../lib/snappy-java-1.0.4.1.jar:./../lib/snaptree-0.1.jar:./../lib/jamm-0.2.5.jar
 INFO 08:42:11,998 JNA not found. Native methods will be disabled.
 INFO 08:42:12,207 Loading settings from file:/usr/local/apache-cassandra-1.2.4/conf/cassandra.yaml
 INFO 08:42:13,791 Data files directories: [/var/lib/cassandra/data]
 INFO 08:42:13,792 Commit log directory: /var/lib/cassandra/commitlog
 INFO 08:42:13,793 DiskAccessMode 'auto' determined to be standard, indexAccessMode is standard
 INFO 08:42:13,793 disk_failure_policy is stop
 INFO 08:42:13,926 Global memtable threshold is enabled at 165MB
 INFO 08:42:15,609 Not using multi-threaded compaction
 INFO 08:42:17,270 Initializing key cache with capacity of 24 MBs.
 INFO 08:42:17,293 Scheduling key cache save to each 14400 seconds (going to save all keys).
 INFO 08:42:17,299 Initializing row cache with capacity of 0 MBs and provider org.apache.cassandra.cache.SerializingCacheProvider
 INFO 08:42:17,359 Scheduling row cache save to each 0 seconds (going to save all keys).
 INFO 08:42:18,249 Opening /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-ib-3 (265 bytes)
 INFO 08:42:18,574 Opening /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-ib-2 (220 bytes)
 INFO 08:42:18,597 Opening /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-ib-1 (223 bytes)
 INFO 08:42:18,670 Opening /var/lib/cassandra/data/system/schema_columnfamilies/system-schema_columnfamilies-ib-5 (4855 bytes)
 INFO 08:42:18,693 Opening /var/lib/cassandra/data/system/schema_columns/system-schema_columns-ib-2 (3770 bytes)
 INFO 08:42:18,700 Opening /var/lib/cassandra/data/system/schema_columns/system-schema_columns-ib-4 (208 bytes)
 INFO 08:42:18,706 Opening /var/lib/cassandra/data/system/schema_columns/system-schema_columns-ib-3 (3772 bytes)
 INFO 08:42:18,713 Opening /var/lib/cassandra/data/system/schema_columns/system-schema_columns-ib-1 (3769 bytes)
 INFO 08:42:18,741 Opening /var/lib/cassandra/data/system/local/system-local-ib-10 (110 bytes)
 INFO 08:42:18,778 Opening /var/lib/cassandra/data/system/local/system-local-ib-9 (386 bytes)
 INFO 08:42:20,907 completed pre-loading (4 keys) key cache.
 INFO 08:42:20,916 Replaying /var/lib/cassandra/commitlog/CommitLog-2-1366156865609.log, /var/lib/cassandra/commitlog/CommitLog-2-1366156865610.log
 INFO 08:42:20,954 Replaying /var/lib/cassandra/commitlog/CommitLog-2-1366156865609.log
 INFO 08:42:21,051 Finished reading /var/lib/cassandra/commitlog/CommitLog-2-1366156865609.log
 INFO 08:42:21,052 Replaying /var/lib/cassandra/commitlog/CommitLog-2-1366156865610.log
 INFO 08:42:21,075 Finished reading /var/lib/cassandra/commitlog/CommitLog-2-1366156865610.log
 INFO 08:42:21,080 Enqueuing flush of Memtable-users@23457041(28/28 serialized/live bytes, 2 ops)
 INFO 08:42:21,085 Writing Memtable-users@23457041(28/28 serialized/live bytes, 2 ops)
 INFO 08:42:21,091 Enqueuing flush of Memtable-local@16277494(52/52 serialized/live bytes, 6 ops)
 INFO 08:42:21,146 Completed flushing /var/lib/cassandra/data/system_auth/users/system_auth-users-ib-1-Data.db (64 bytes) for commitlog position ReplayPosition(segmentId=1366159340516, position=142)
 INFO 08:42:21,261 Writing Memtable-local@16277494(52/52 serialized/live bytes, 6 ops)
 INFO 08:42:21,277 Completed flushing /var/lib/cassandra/data/system/local/system-local-ib-11-Data.db (84 bytes) for commitlog position ReplayPosition(segmentId=1366159340516, position=142)
 INFO 08:42:21,279 Log replay complete, 3 replayed mutations
 INFO 08:42:21,294 Fixing timestamps of schema ColumnFamily schema_keyspaces...
 INFO 08:42:21,495 Enqueuing flush of Memtable-local@4223809(65/65 serialized/live bytes, 2 ops)
 INFO 08:42:21,497 Writing Memtable-local@4223809(65/65 serialized/live bytes, 2 ops)
 INFO 08:42:21,513 Completed flushing /var/lib/cassandra/data/system/local/system-local-ib-12-Data.db (97 bytes) for commitlog position ReplayPosition(segmentId=1366159340516, position=297)
 INFO 08:42:21,518 Enqueuing flush of Memtable-schema_keyspaces@11390025(389/389 serialized/live bytes, 9 ops)
 INFO 08:42:21,520 Writing Memtable-schema_keyspaces@11390025(389/389 serialized/live bytes, 9 ops)
 INFO 08:42:21,536 Completed flushing /var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-ib-4-Data.db (236 bytes) for commitlog position ReplayPosition(segmentId=1366159340516, position=992)
 INFO 08:42:21,909 Cassandra version: 1.2.4
 INFO 08:42:21,910 Thrift API version: 19.35.0
 INFO 08:42:21,911 CQL supported versions: 2.0.0,3.0.1 (default: 3.0.1)
 INFO 08:42:22,148 Loading persisted ring state
 INFO 08:42:22,151 Starting up server gossip
 INFO 08:42:22,222 Enqueuing flush of Memtable-local@32614666(251/251 serialized/live bytes, 9 ops)
 INFO 08:42:22,223 Writing Memtable-local@32614666(251/251 serialized/live bytes, 9 ops)
 INFO 08:42:22,238 Completed flushing /var/lib/cassandra/data/system/local/system-local-ib-13-Data.db (240 bytes) for commitlog position ReplayPosition(segmentId=1366159340516, position=51235)
 INFO 08:42:22,269 Compacting [SSTableReader(path='/var/lib/cassandra/data/system/local/system-local-ib-12-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/local/system-local-ib-10-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/local/system-local-ib-9-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/local/system-local-ib-13-Data.db'), SSTableReader(path='/var/lib/cassandra/data/system/local/system-local-ib-11-Data.db')]
 INFO 08:42:22,386 Compacted 5 sstables to [/var/lib/cassandra/data/system/local/system-local-ib-14,].  917 bytes to 490 (~53% of original) in 63ms = 0.007417MB/s.  5 total rows, 1 unique.  Row merge counts were {1:0, 2:0, 3:0, 4:0, 5:1, }
 INFO 08:42:22,638 Starting Messaging Service on port 7000
 INFO 08:42:22,943 Using saved token [-5549340944909481365]
 INFO 08:42:22,949 Enqueuing flush of Memtable-local@24819405(84/84 serialized/live bytes, 4 ops)
 INFO 08:42:22,951 Writing Memtable-local@24819405(84/84 serialized/live bytes, 4 ops)
 INFO 08:42:22,974 Completed flushing /var/lib/cassandra/data/system/local/system-local-ib-15-Data.db (120 bytes) for commitlog position ReplayPosition(segmentId=1366159340516, position=51510)
 INFO 08:42:22,981 Enqueuing flush of Memtable-local@28362817(51/51 serialized/live bytes, 2 ops)
 INFO 08:42:22,982 Writing Memtable-local@28362817(51/51 serialized/live bytes, 2 ops)
 INFO 08:42:23,017 Completed flushing /var/lib/cassandra/data/system/local/system-local-ib-16-Data.db (110 bytes) for commitlog position ReplayPosition(segmentId=1366159340516, position=51685)
 INFO 08:42:23,093 Node localhost/127.0.0.1 state jump to normal
 INFO 08:42:23,100 Startup completed! Now serving reads.

[root@localhost bin]#

起動すると、Cassandraの起動に成功したことを示すコードがたくさん出力されます。


ソース元URL:https://dopubox.com/article/p/3238c940496b1b4a

Other Tools
  • Character Count TikTok Download DouYin Download BASE64 Base64 to Image Image to Base64 URL Encoding JavaScript Timestamp Unicode Converter JSON Format Modify Extension Make List CSS Optimizer MD5 Encryption Random Generator Image Compression QR Code Generator QR Code Reader Wallpaper Preview Blood Type Heredity Clothing Sizes
  • レノンのギター4.5億円 ビートルズ関連最高落札額
    2024-05-30

    制作期間「足りていなかった可能性」
    2024-05-31

    【6月1日~2日】週末必見の“アート&デザイン”まとめ!
    2024-06-01

    入試問題は白黒です 「わかりやすさ」「カラフル」は逆効果、自分で図を書くべし 桜井信一の攻める中学受験
    2024-05-31

    森トラストが平安女学院から有栖川宮旧邸を取得…今度の活用は京都市とも引き続き協議
    2024-06-01

    「工芸的美しさの行方―うつわ・包み・装飾」が東京と京都で開催。第1弾はBONDED GALLERYにて7月から
    2024-06-03

    峰不二子役の増山江威子さん死去 声優、艶ある声でルパン翻弄
    2024-06-03

    テレ東が警察密着番組の担当者らを懲戒処分
    2024-06-03

    現代美術作家の杉本博司がYouTubeチャンネル開設 素顔に迫る映像を公開
    2024-06-04

    「君たちはどう生きるか」展 第二部 レイアウト編(三鷹の森ジブリ美術館)レポート。絵を描くことの営為、そして苦悩も見せる
    2024-06-04

    彫刻の森美術館で「舟越桂 森へ行く日」が開催へ
    2024-06-05

    GROUP「島をつくる | Planning Another Island」(マイナビアートスクエア)開幕レポート。高層ビルのなかで建築をコンポストする
    2024-06-05

    akakilikeの新作ダンス公演『希望の家』が松本・東京の2都市で上演へ
    2024-06-04

    「避難いただけるほうが一安心」珠洲で激しい揺れに耐えた仏像、奈良博で縁つなぐ
    2024-06-04

    第55回星雲賞・自由部門に「巨大ロボット展」 日本SFファングループ連合会議
    2024-06-05

    ビル・エヴァンスの名言「才能なんて取るに足りない」【本と名言365】
    2024-06-05

    美しくて“かわいい”結びの技  1400年の歴史を誇る「水引」の可能性を探って
    2024-06-06

    宗教2世のドラマが受賞 第50回放送文化基金賞
    2024-06-06

    佐渡金山の世界遺産登録、「情報照会」勧告
    2024-06-06

    もしあの時に戻れたら…歌人・穂村弘が話題書『迷子手帳』で明かす、今も忘れられない「失敗」
    2024-06-07

    ©  Dopu Box
    💛