<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Aerialarts &#187; cassandra</title>
	<atom:link href="http://aerial.st/tags/cassandra/feed/" rel="self" type="application/rss+xml" />
	<link>http://aerial.st</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 01:27:51 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/tags/cassandra/feed/" />
		<item>
		<title>Cassandraによるデータモデル構築のための資料</title>
		<link>http://aerial.st/archive/2010/03/22/pointers-to-materials-on-cassandra-data-mode/</link>
		<comments>http://aerial.st/archive/2010/03/22/pointers-to-materials-on-cassandra-data-mode/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 13:30:52 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[cassandra]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=681</guid>
		<description><![CDATA[Adventures with Cassandra Distributed Databaseに、del.icio.usのデータモデルをCassandraで構築するとしたらどうやるんだろう？という場合のダイアグラムが載っている。 GitHubにはそれを実現するためのconf/storage-conf.xmlも載っているので、とても参考になる。 ちなみにこのブログはとあるメーリングリストの投稿を追っていったら発見した。 スキーマレスといえども、Keyspace（MySQLでのデータベースみたいなものらしい）とColumnFamilyだけはconf/storage-conf.xmlに設定しなきゃならないようだ。 データの検索に関してはCassandraで登録しているカラムデータの検索方法(Cassandra:inverted indexの翻訳)が参考になるかもしれない。 まだ把握しきれていないけど、検索用のデータを別途用意するのがいいらしい。転置インデックスとか？ 行指向だって最近知ったのに、列指向ってなんなんだろうなぁ…。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2010/03/22/pointers-to-materials-on-cassandra-data-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2010/03/22/pointers-to-materials-on-cassandra-data-mode/" />
	</item>
		<item>
		<title>CassandraをSnow Leopardで動かす</title>
		<link>http://aerial.st/archive/2010/03/18/install-cassandra-onsnow-leopard/</link>
		<comments>http://aerial.st/archive/2010/03/18/install-cassandra-onsnow-leopard/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 14:48:47 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[cassandra]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=666</guid>
		<description><![CDATA[CassandraをSnow Leopardで動かす方法。 Javaの設定 ~/.zshrcに次の記述を追加する。 export JAVA_HOME=$(/usr/libexec/java_home) export PATH=$JAVA_HOME/bin:$PATH Cassandraのインストール まずディレクトリを掘る。 1つはログ用ディレクトリ。 mkdir -p /var/log/cassandra touch /var/log/cassandra/system.log chown -R `whoami` /var/log/cassandra 2つ目はデータ用ディレクトリ。デフォルトらしい。 mkdir -p /var/lib/cassandra chown -R `whoami` /var/lib/cassandra 今回はコンパイル済みバイナリを落としてそれを使う。 tar xf apache-cassandra-0.5.1-bin.tar.gz mv apache-cassandra-0.5.1-bin /usr/local ln -s /usr/local/apache-cassandra-0.5.1-bin /usr/local/cassandra サーバを立ち上げる。 /usr/local/cassandra/bin/cassandra デフォルトではシングルモードで動作し、8888番ポートを使用する。 詳細な設定はconf/storage-conf.xmlに記述する。 クライアントはbin/cassandra-cliを使用する。 /usr/local/cassandra/bin/cassandra-cli -host localhost -port 8888 /usr/local/cassandra/bin/cassandra-cli -host localhost -port 9160 対話形式で起動し、helpコマンドでヘルプを見ることができる。 プロセスの実行権限所有者とかログの書き込み権限とか 参考にしたサイトではどこもログやデータディレクトリの所有者が端末の利用者に設定されていてちょっと気持ち悪かった（whoamiの部分）。 なので、試しに_cassandraユーザを作って次のことをやってみた。 各ディレクトリの所有者を_cassandraユーザに設定 サーバを_cassandraユーザで起動（sudo -u _cassandra /usr/local/cassandra/bin/cassandra） cassandra-cliを上と同様に起動（ユーザはwhoami） そしたら、サーバを起動したところまではうまくいったけど、クライアントを起動する際に/var/log/cassandra/system.logに書き込み権限が無いとエラーが出た。 そこに書き込むのはサーバのプロセス所有者である_cassandraなのに…。 そこで、今度はcassandra-cliもサーバと同じように_cassandraユーザで起動してみたら、ホームディレクトリに作られるクライアントの履歴ファイルの書き込み権限が無いと怒られた。これは確かにその通りだよね、という感じ。 なので、最終手段として_cassandraグループを作って次のことをやってみた。 _cassandraグループに_cassandraユーザとwhoamiを追加する ログディレクトリとデータディレクトリ、実行ファイルの所有グループを_cassandraグループに設定する ログディレクトリとデータディレクトリの所有グループに書き込み権限を与える サーバを_cassandraユーザで起動 cassandra-cliは今まで通り普通に起動（ユーザはwhoami） そしたら、問題なくサーバに接続できた。 ログファイルはクライアントのユーザ権限で書き込みにいっているのかも？なんか変な気がするけど。 参考文献 Installing Cassandra and Thrift [...]]]></description>
		<wfw:commentRss>http://aerial.st/archive/2010/03/18/install-cassandra-onsnow-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2010/03/18/install-cassandra-onsnow-leopard/" />
	</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: aerial.st @ 2012-05-23 01:21:58 -->
