<?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/"
	>

<channel>
	<title>Blog d&#039;Idriss Neumann &#187; NoSQL</title>
	<atom:link href="https://blog.developpez.com/ineumann/pcategory/nosql/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.developpez.com/ineumann</link>
	<description>Articles sur Linux et sur le développement sous Linux</description>
	<lastBuildDate>Mon, 14 Jul 2014 08:38:25 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Installation de MongoDB sous Ubuntu/Mint</title>
		<link>https://blog.developpez.com/ineumann/p11922/nosql/installation-de-mongodb-sous-ubuntumint</link>
		<comments>https://blog.developpez.com/ineumann/p11922/nosql/installation-de-mongodb-sous-ubuntumint#comments</comments>
		<pubDate>Tue, 16 Apr 2013 10:31:43 +0000</pubDate>
		<dc:creator><![CDATA[ok.Idriss]]></dc:creator>
				<category><![CDATA[NoSQL]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/ineumann/?p=134</guid>
		<description><![CDATA[Cet article traite de l&#8217;installation de MongoDB via les dépôts sous Ubuntu. MongoDB est un SGBD assez répandu qui fait partie, au même titre que Cassandra, de la mouvance des SGBD NoSQL. Ces manipulations ont été effectuées sous Ubuntu 12.04 LTS. I &#8211; Installation 1) Exécuter les commandes suivantes : sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 sudo touch /etc/apt/sources.list.d/10gen.list 2) Ajouter la ligne suivante au fichier /etc/apt/source.list (en root) : deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Cet article traite de l&rsquo;installation de MongoDB via les dépôts sous Ubuntu. MongoDB est un SGBD assez répandu qui fait partie, au même titre que Cassandra, de la mouvance des SGBD NoSQL.</p>
<p>Ces manipulations ont été effectuées sous Ubuntu 12.04 LTS.</p>
<p><strong>I &#8211; Installation</strong></p>
<p><span style="text-decoration: underline;"><strong>1)</strong></span> Exécuter les commandes suivantes :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key adv</span> <span style="color: #660033;">--keyserver</span> keyserver.ubuntu.com <span style="color: #660033;">--recv</span> 7F0CEB10<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list.d<span style="color: #000000; font-weight: bold;">/</span>10gen.list</div></div>
<p><span style="text-decoration: underline;"><strong>2)</strong></span> Ajouter la ligne suivante au fichier <code class="codecolorer text default"><span class="text">/etc/apt/source.list</span></code> (en root) :</p>
<p><code class="codecolorer bash default"><span class="bash">deb http:<span style="color: #000000; font-weight: bold;">//</span>downloads-distro.mongodb.org<span style="color: #000000; font-weight: bold;">/</span>repo<span style="color: #000000; font-weight: bold;">/</span>ubuntu-upstart dist 10gen</span></code></p>
<p><span style="text-decoration: underline;"><strong>3)</strong></span> Mettre à jour la liste des dépôts :</p>
<p><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get update</span></span></code></p>
<p><span style="text-decoration: underline;"><strong>4)</strong></span> Installation :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">apt-get install</span> mongodb-<span style="color: #000000;">10</span><span style="color: #007800;">gen</span>=2.2.3<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;mongodb-10gen hold&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">--set-selections</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> mongodb-10gen</div></div>
<p><span style="text-decoration: underline;"><strong>5)</strong></span> Lancer le service :</p>
<p><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> service mongodb start</span></code></p>
<p><strong>II &#8211; Utilisation</strong></p>
<p>Lancer le client MongoDB :</p>
<p><code class="codecolorer bash default"><span class="bash">mongo</span></code></p>
<p>Insérer une donnée :</p>
<p><code class="codecolorer bash default"><span class="bash">db.test.save<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> key: <span style="color: #ff0000;">&quot;value&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span></span></code></p>
<p>Récupérer les valeurs :</p>
<p><code class="codecolorer bash default"><span class="bash">db.test.find<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></span></code></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation de Cassandra sur Ubuntu/Mint</title>
		<link>https://blog.developpez.com/ineumann/p11921/nosql/installation-de-cassandra-sur-ubuntu</link>
		<comments>https://blog.developpez.com/ineumann/p11921/nosql/installation-de-cassandra-sur-ubuntu#comments</comments>
		<pubDate>Tue, 16 Apr 2013 09:49:13 +0000</pubDate>
		<dc:creator><![CDATA[ok.Idriss]]></dc:creator>
				<category><![CDATA[NoSQL]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/ineumann/?p=113</guid>
		<description><![CDATA[Vous souhaitez vous mettre au NoSQL ? Vous avez le choix entre une multitude de SGBD NoSQL orientés clefs/valeurs ou orientés colonnes. Parmi l&#8217;un des plus en vogue, se trouve Cassandra maintenu par la fondation Apache. Il est possible de télécharger une archive .tar.gz et de suivre les directives dans le fichier README mais nous verrons ici comment installer proprement Cassandra depuis les dépôts. L&#8217;avantage ici est que le serveur Cassandra sera automatiquement configuré correctement. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Vous souhaitez vous mettre au NoSQL ? Vous avez le choix entre une multitude de SGBD NoSQL orientés clefs/valeurs ou orientés colonnes.</p>
<p>Parmi l&rsquo;un des plus en vogue, se trouve Cassandra maintenu par la fondation Apache. Il est possible de télécharger une archive .tar.gz et de suivre les directives dans le fichier README mais nous verrons ici comment installer proprement Cassandra depuis les dépôts.</p>
<p>L&rsquo;avantage ici est que le serveur Cassandra sera automatiquement configuré correctement. Ces manipulations ont été effectuées sous Ubuntu 12.04 LTS.</p>
<p><strong>I &#8211; Installation</strong></p>
<p><span style="text-decoration: underline;"><strong>1)</strong></span> Ajouter les lignes suivantes au fichier <code class="codecolorer text default"><span class="text">/etc/apt/sources.list</span></code> (en root)</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">deb http:<span style="color: #000000; font-weight: bold;">//</span>www.apache.org<span style="color: #000000; font-weight: bold;">/</span>dist<span style="color: #000000; font-weight: bold;">/</span>cassandra<span style="color: #000000; font-weight: bold;">/</span>debian 11x main<br />
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>www.apache.org<span style="color: #000000; font-weight: bold;">/</span>dist<span style="color: #000000; font-weight: bold;">/</span>cassandra<span style="color: #000000; font-weight: bold;">/</span>debian 11x main</div></div>
<p><span style="text-decoration: underline;"><strong>2)</strong></span> Exécuter les commandes suivantes :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gpg <span style="color: #660033;">--keyserver</span> pgp.mit.edu <span style="color: #660033;">--recv-keys</span> F758CE318D77295D<br />
gpg <span style="color: #660033;">--export</span> <span style="color: #660033;">--armor</span> F758CE318D77295D <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key add</span> -<br />
gpg <span style="color: #660033;">--keyserver</span> pgp.mit.edu <span style="color: #660033;">--recv-keys</span> 2B5C1B00<br />
gpg <span style="color: #660033;">--export</span> <span style="color: #660033;">--armor</span> 2B5C1B00 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key add</span> -</div></div>
<p><span style="text-decoration: underline;"><strong>3)</strong></span> Mettre à jour la liste des dépôts</p>
<p><code class="codecolorer text default"><span class="text">sudo apt-get update</span></code></p>
<p><span style="text-decoration: underline;"><strong>4)</strong></span> Installer le serveur</p>
<p><code class="codecolorer text default"><span class="text">sudo apt-get install cassandra</span></code></p>
<p><span style="text-decoration: underline;"><strong>5)</strong></span> Démarrer le service</p>
<p><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> service cassandra start</span></code></p>
<p><strong>II &#8211; Utilisation</strong></p>
<p><span style="text-decoration: underline;"><strong>1)</strong></span> Lancer le client cassandra :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cassandra-cli <span style="color: #660033;">--host</span><br />
<span style="color: #666666; font-style: italic;"># ou en local</span><br />
cassandra-cli</div></div>
<p><span style="text-decoration: underline;"><strong>2)</strong></span> Créer un keyspace et s&rsquo;y connecter</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>default<span style="color: #000000; font-weight: bold;">@</span>unknown<span style="color: #7a0874; font-weight: bold;">&#93;</span> create keyspace <span style="color: #7a0874; font-weight: bold;">test</span>;<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>default<span style="color: #000000; font-weight: bold;">@</span>unknown<span style="color: #7a0874; font-weight: bold;">&#93;</span> use <span style="color: #7a0874; font-weight: bold;">test</span>;<br />
Authenticated to keyspace: <span style="color: #7a0874; font-weight: bold;">test</span></div></div>
<p><span style="text-decoration: underline;"><strong>3)</strong></span> Créer une colonne</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>default<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> create column family Users with <span style="color: #007800;">comparator</span>=UTF8Type and <span style="color: #007800;">default_validation_class</span>=UTF8Type and <span style="color: #007800;">key_validation_class</span>=UTF8Type;</div></div>
<p><span style="text-decoration: underline;"><strong>4)</strong></span> Ajouter des entrées :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>default<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">set</span> Users<span style="color: #7a0874; font-weight: bold;">&#91;</span>jsmith<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>first<span style="color: #7a0874; font-weight: bold;">&#93;</span> = <span style="color: #ff0000;">'John'</span>;<br />
Value inserted.<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>default<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">set</span> Users<span style="color: #7a0874; font-weight: bold;">&#91;</span>jsmith<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #c20cb9; font-weight: bold;">last</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> = <span style="color: #ff0000;">'Smith'</span>;<br />
Value inserted.<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>default<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">set</span> Users<span style="color: #7a0874; font-weight: bold;">&#91;</span>jsmith<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>age<span style="color: #7a0874; font-weight: bold;">&#93;</span> = long<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">42</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;<br />
Value inserted.</div></div>
<p><span style="text-decoration: underline;"><strong>5)</strong></span> Récupérer des entrées :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>default<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">test</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> get Users<span style="color: #7a0874; font-weight: bold;">&#91;</span>jsmith<span style="color: #7a0874; font-weight: bold;">&#93;</span>;<br />
=<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">column</span>=<span style="color: #c20cb9; font-weight: bold;">last</span>, <span style="color: #007800;">value</span>=Smith, <span style="color: #007800;">timestamp</span>=<span style="color: #000000;">1287604215498000</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
=<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">column</span>=first, <span style="color: #007800;">value</span>=John, <span style="color: #007800;">timestamp</span>=<span style="color: #000000;">1287604214111000</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
=<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">column</span>=age, <span style="color: #007800;">value</span>=<span style="color: #000000;">42</span>, <span style="color: #007800;">timestamp</span>=<span style="color: #000000;">1287604216661000</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Returned <span style="color: #000000;">3</span> results.</div></div>
<p><strong>III &#8211; Impossible de lancer Cassandra</strong></p>
<p>Vous avez une erreur similaire à celle ci-dessous ?</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cassandra <span style="color: #660033;">-f</span> xss = <span style="color: #660033;">-ea</span> -javaagent:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>cassandra<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:<span style="color: #007800;">ThreadPriorityPolicy</span>=<span style="color: #000000;">42</span> <span style="color: #660033;">-Xms1493M</span> <span style="color: #660033;">-Xmx1493M</span> <span style="color: #660033;">-Xmn373M</span> <span style="color: #660033;">-Xss160k</span> Segmentation fault <span style="color: #7a0874; font-weight: bold;">&#40;</span>core dumped<span style="color: #7a0874; font-weight: bold;">&#41;</span></div></div>
<p>Ajouter la ligne suivante au fichier <code class="codecolorer text default"><span class="text">/etc/cassandra/cassandra-env.sh</span></code> (en root) :</p>
<p><code class="codecolorer bash default"><span class="bash"><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">uname</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> =~ <span style="color: #ff0000;">&quot;Linux&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #007800;">JVM_OPTS</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$JVM_OPTS</span> -Xss280k&quot;</span></span></code></p>
<p>Puis redémarrer le serveur :</p>
<p><code class="codecolorer bash default"><span class="bash"><span style="color: #c20cb9; font-weight: bold;">sudo</span> service cassandra restart</span></code></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
