<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adrià Galín Figueras on Medium]]></title>
        <description><![CDATA[Stories by Adrià Galín Figueras on Medium]]></description>
        <link>https://medium.com/@adriagalin?source=rss-4bd14a24104b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bu2M9lgECSd625Kv.</url>
            <title>Stories by Adrià Galín Figueras on Medium</title>
            <link>https://medium.com/@adriagalin?source=rss-4bd14a24104b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 17:01:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adriagalin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Import and export keyspace or schema in cassandra]]></title>
            <link>https://medium.com/@adriagalin/import-and-export-keyspace-or-schema-in-cassandra-a7aa23c7092c?source=rss-4bd14a24104b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7aa23c7092c</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cassandra]]></category>
            <dc:creator><![CDATA[Adrià Galín Figueras]]></dc:creator>
            <pubDate>Mon, 03 Jul 2017 08:13:05 GMT</pubDate>
            <atom:updated>2017-07-03T08:13:08.839Z</atom:updated>
            <content:encoded><![CDATA[<p>This command line will export a keyspace from Cassandra:</p><pre>cqlsh -e &quot;DESCRIBE KEYSPACE test&quot; &gt; /your/path/test.cql</pre><p>this one will export a schema from Cassandra:</p><pre>cqlsh -e &quot;DESCRIBE SCHEMA&quot; &gt; /your/path/schema.cql</pre><p>Then, you can import it with:</p><pre>cqlsh -e &quot;SOURCE /your/path/test.cql&quot;<br><br>cqlsh -e &quot;SOURCE /your/path/schema.cql&quot;</pre><p>You can also open the terminal in the location of cql file and then open cqlsh shell. Therefore, it is not necessary to write all path:</p><pre>cd /your/path<br>cqlsh -e &quot;SOURCE test.cql&quot;</pre><p><em>Originally published at </em><a href="http://blog.adriagalin.com/2017/07/import-and-export-keyspace-or-schema-in-cassandra/"><em>Adrià Galín</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7aa23c7092c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrading Apache Cassandra cluster]]></title>
            <link>https://medium.com/@adriagalin/upgrading-apache-cassandra-cluster-f076bf734736?source=rss-4bd14a24104b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f076bf734736</guid>
            <category><![CDATA[cassandra]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Adrià Galín Figueras]]></dc:creator>
            <pubDate>Sat, 28 Jan 2017 09:27:31 GMT</pubDate>
            <atom:updated>2017-03-09T16:51:33.204Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8dAbnziYWpxCE9Dd.png" /></figure><p>At <a href="https://thethings.io/">thethings.io</a> we use Cassandra as our timeseries database for thing data. Weeks ago we needed to upgrade our cassandra version to a major release version.</p><p>This post aims to group all steps that we use for upgrade our Cassandra cluster to a newer version. There are a lot of documentation and sometimes it is a little bit annoying to look at different pages.</p><p>This section describes how to upgrade Apache Cassandra with zero downtime if your cluster has a replication factor of at least 3.</p><p><strong><em>Note:</em></strong></p><ul><li><em>Be careful when you run these steps on production environments.</em></li><li><em>For command simplicity I don’t include the user and password. Ex: nodetool drain -u username -pw password</em></li></ul><h4>Prerequisites</h4><ul><li>Make sure you have an up-to-date daily backup. We use nodetool snapshot tool for that but there are other options as well like OpsCenter.</li><li>Familiarize yourself with the changes and features in this new release.</li><li>Remove all dead nodes.</li><li>Do not run nodetool repair or other tasks.</li></ul><p>Please check this <a href="https://docs.datastax.com/en/latest-upgrade/upgrade/cassandra/upgrdCassandraDetails.html">link</a> for more information.</p><h4>Steps for upgrade cassandra version</h4><p><strong>1.</strong> Run nodetool drain before shutting down the existing Cassandra service. This flushes all memtables from the node to SSTables on disk. Cassandra stops listening for connections from the client and other nodes. Also prevents overcounts of counter data, and speeds up restart post-upgrade.</p><pre>nodetool drain -h hostname</pre><p><strong>2.</strong> Stop cassandra services.</p><pre>service cassandra stop<br>service datastax-agent stop</pre><p><strong>3.</strong> Back up your cassandra configuration files from the old installation to safe place.</p><p><strong>4.</strong> Update java version.</p><pre>apt-get update<br>apt-get install oracle-java8-set-default<br>java -version</pre><p><strong>5.</strong> Install the new version of Apache Cassandra.</p><pre>apt-get update<br>apt-get install cassandra=3.0.9</pre><p>If you are running Cassandra from a source you should download the latest tar.gz instead of using the package manager.</p><p><strong>6.</strong> Configure the new product. Review, compare, merge and/or update any modifications you have previously made into the new configuration files for the new version (cassandra.yml, cassandra-env.sh, etc.). Take care with the configuration options and check version restrictions.</p><p><strong>7.</strong> Start the cassandra services.</p><pre>service cassandra start<br>service datastax-agent start</pre><p>Check the logs for warnings, errors, and exceptions.</p><pre>tail -f /ttio/var/logs/cassandra/system.log # or path where you set your logs.</pre><p><strong>8.</strong> Run nodetool upgradesstables</p><pre>nodetool upgradesstables</pre><p><strong>9.</strong> Check the logs for warnings, errors, and exceptions.</p><pre>tail -f /ttio/var/logs/cassandra/system.log # or path where you set your logs.</pre><p><strong>10.</strong> Check the status of the cluster</p><pre>nodetool -h hostname status</pre><p><strong>11.</strong> Repeat theses upgrade steps on each node in the cluster.</p><h4>References</h4><ul><li><a href="https://docs.datastax.com/en/latest-upgrade/upgrade/cassandra/upgdCassandra.html">Upgrading Apache Cassandra</a></li><li><a href="https://www.amazon.es/Cassandra-Performance-Cookbook-Answers-Problems/dp/1849515123/ref=sr_1_1?ie=UTF8&amp;qid=1484764342&amp;sr=8-1&amp;keywords=Cassandra+High+Performance+Cookbook">Cassandra High Performance Cookbook</a></li><li><a href="https://www.amazon.es/Cassandra-Definitive-Guide-Jeff-Carpenter/dp/1491933666/ref=sr_1_1?ie=UTF8&amp;qid=1484766487&amp;sr=8-1&amp;keywords=Cassandra+The+Definitive+Guide">Cassandra The Definitive Guide</a></li><li><a href="https://www.amazon.es/Mastering-Apache-Cassandra-Nishant-Neeraj/dp/1782162682/ref=sr_1_1?ie=UTF8&amp;qid=1484766469&amp;sr=8-1&amp;keywords=mastering+apache+cassandra">Mastering Apache Cassandra</a></li></ul><p><em>Originally published at </em><a href="http://blog.adriagalin.com/2017/01/upgrading-apache-cassandra-cluster/"><em>Adrià Galín</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f076bf734736" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Propósitos 2017]]></title>
            <link>https://medium.com/@adriagalin/prop%C3%B3sitos-2017-6e4eb324e54b?source=rss-4bd14a24104b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e4eb324e54b</guid>
            <dc:creator><![CDATA[Adrià Galín Figueras]]></dc:creator>
            <pubDate>Wed, 04 Jan 2017 09:50:03 GMT</pubDate>
            <atom:updated>2017-02-09T16:13:47.899Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*rz4UdIZPIuu19aRe.jpg" /></figure><p>Cada año tengo en mente un montón de cosas que me gustaría llevar a cabo y nunca termino de hacerlas todas, así que he decidido hacer una pequeña lista de propósitos para este año 2017, no muy ambiciosa porque siempre salen cosas por el camino.</p><p><strong>Leer más: </strong>El año 2016 fue desastroso en lectura, casi nada. Este año me gustaría sacar los libros que tengo en las estanterías de casa con un dedo de polvo y leer 3–4 libros. Haré un post sobre los libro/s que estoy leyendo o que voy a leer. De momento, estoy leyendo <a href="https://www.goodreads.com/book/show/31397808-l-grimas-en-el-mar"><strong>Lágrimas en el mar</strong></a><strong> </strong>de <a href="http://rutasepetys.com/">Ruta Sepetys</a>.</p><p><strong>Aprender inglés: </strong>Empezar a ver series en inglés y apuntarme a una escuela de idiomas, YA! Me hace falta para el trabajo si o si.</p><p><strong>Aprender con más detalle GoLang: </strong>Me gustaría aprender un nuevo lenguaje. Golang, creo que me va a ir genial. Ya hice mis pinitos pero quiero profundizar mucho más.</p><p><strong>Aprender con más detalle Kubernetes:</strong> Este año a sido el de Kubernetes, en la empresa donde estoy trabajamos con él y la verdad estoy super contento. Le veo un futuro espectacular. Toca apretar.</p><p><strong>Hacer más ejercicio del que hago actualmente: </strong>Cuando puedo ir a correr, normalmente, hago media hora. Quiero aumentarlo hasta los 45 minutos.</p><p><strong>Definirme una rutina diaria: </strong>Sobretodo aplicarla. Ya lo he probado varias veces, sin mucho éxito.</p><p><strong>Crear un sideproject: </strong>Sigo pensando cuál.</p><p><strong>Mejorar como profesional.</strong></p><p><strong>Mejorar mis habilidades comunicativas.</strong></p><p><strong>Dar alguna charla en algún meetup.</strong></p><p><strong>Pasar más tiempo con mi familia y amigos:</strong> Es obvio pero el trabajo me consume mucho tiempo.</p><p><strong>Trabajar remotamente en diferentes partes del mundo:</strong> Este lo veo un poco complicado pero me apetecía ponerlo.</p><p>A seguir currando. :P</p><p><em>Originally published at </em><a href="http://blog.adriagalin.com/2017/01/propositos-2017/"><em>Adrià Galín</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e4eb324e54b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Verificar la caducidad de los certificados SSL en AWS]]></title>
            <link>https://medium.com/@adriagalin/verificar-la-caducidad-de-los-certificados-ssl-en-aws-ac4417907cbb?source=rss-4bd14a24104b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac4417907cbb</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ssl]]></category>
            <dc:creator><![CDATA[Adrià Galín Figueras]]></dc:creator>
            <pubDate>Sun, 11 Sep 2016 21:29:11 GMT</pubDate>
            <atom:updated>2017-02-09T16:13:37.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*mwDqiBeANWecleWp.jpg" /></figure><p>El otro día quería revisar los certificados ssl instalados en AWS para un nuevo cliente y ya de paso para mi empresa. El cliente no lo tenia apuntado en ningún sitio, pero tenia en mente que estaban apunto de caducar. Así que, en vez de mirar mí calendario dónde había apuntado la fecha de caducidad de los certificados de mi empresa, aprovechando la ocasión decidí documentarme y hacerme un alias para mi bash. De esta forma, ya lo tengo a mano. Encontré mucha información y opciones.</p><p><strong>Nota:</strong> Para ejecutar este comando es necesario la interfaz de línea de comandos de AWS (<a href="https://aws.amazon.com/es/cli/">aws-cli</a>) y/o <a href="https://stedolan.github.io/jq/">jq</a></p><p>Con este comando puedo listar todos los certificados instalados (recuerda configurar las credenciales correspondientes):</p><pre>alias sslexpiration=&quot;aws iam list-server-certificates --output text --query &#39;ServerCertificateMetadataList[*].[Expiration,ServerCertificateName]&#39;&quot;</pre><p>con jq:</p><pre>aws iam list-server-certificates --output json | jq &#39;.ServerCertificateMetadataList[] | { SSL: .ServerCertificateName, Expiration: .Expiration }&#39;</pre><p>Aquí tienes más información sobre como <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html">manejar los certificados en AWS</a>.</p><p><em>Originally published at </em><a href="http://blog.adriagalin.com/2016/09/verificar-la-caducidad-de-los-certificados-ssl-en-aws/"><em>Adrià Galín</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac4417907cbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker: delete all images]]></title>
            <link>https://medium.com/@adriagalin/docker-delete-all-images-6844665030fa?source=rss-4bd14a24104b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6844665030fa</guid>
            <category><![CDATA[shell]]></category>
            <category><![CDATA[tips]]></category>
            <dc:creator><![CDATA[Adrià Galín Figueras]]></dc:creator>
            <pubDate>Fri, 26 Aug 2016 13:46:42 GMT</pubDate>
            <atom:updated>2017-02-09T16:13:31.920Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/792/0*aS5YBw_L4BO6Y65c.png" /></figure><p>This command deletes all docker images.</p><pre>alias ddai=&#39;docker rmi $(docker images -q)&#39;</pre><p><em>Originally published at </em><a href="http://blog.adriagalin.com/2016/08/docker-delete-all-images/"><em>Adrià Galín</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6844665030fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker: delete all dangling volumes]]></title>
            <link>https://medium.com/@adriagalin/docker-delete-all-dangling-volumes-11487d119b00?source=rss-4bd14a24104b------2</link>
            <guid isPermaLink="false">https://medium.com/p/11487d119b00</guid>
            <category><![CDATA[shell]]></category>
            <category><![CDATA[tips]]></category>
            <dc:creator><![CDATA[Adrià Galín Figueras]]></dc:creator>
            <pubDate>Thu, 25 Aug 2016 21:21:23 GMT</pubDate>
            <atom:updated>2017-02-09T16:13:18.847Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/792/0*Mg-IGFeAN6nnRSv1.png" /></figure><p>When you have not removed a data volume container with <strong>docker rm -v</strong> this data volume container is still there as a dangling volume and remains in to the local disk. You can remove it with this command:</p><pre>alias ddv=&#39;docker volume rm $(docker volume ls -qf dangling=true)&#39;</pre><p><em>Originally published at </em><a href="http://blog.adriagalin.com/2016/08/docker-delete-all-dangling-volumes/"><em>Adrià Galín</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11487d119b00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker: delete all stopped containers]]></title>
            <link>https://medium.com/@adriagalin/docker-delete-all-stopped-containers-d8cedff8099d?source=rss-4bd14a24104b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8cedff8099d</guid>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[shell]]></category>
            <dc:creator><![CDATA[Adrià Galín Figueras]]></dc:creator>
            <pubDate>Wed, 24 Aug 2016 21:01:37 GMT</pubDate>
            <atom:updated>2017-02-09T16:13:08.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/792/0*3gm-1jebo4kw82re.png" /></figure><p>This command deletes all stopped docker containers. Caution! This command will fail when trying to delete still-running containers.</p><pre>alias ddsc=&#39;docker rm $(docker ps -a -q)&#39;</pre><p><em>Originally published at </em><a href="http://blog.adriagalin.com/2016/08/docker-delete-all-stopped-containers/"><em>Adrià Galín</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8cedff8099d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker: stop all containers]]></title>
            <link>https://medium.com/@adriagalin/docker-stop-all-containers-938a7e6a6e39?source=rss-4bd14a24104b------2</link>
            <guid isPermaLink="false">https://medium.com/p/938a7e6a6e39</guid>
            <category><![CDATA[shell]]></category>
            <category><![CDATA[tips]]></category>
            <dc:creator><![CDATA[Adrià Galín Figueras]]></dc:creator>
            <pubDate>Wed, 24 Aug 2016 16:35:22 GMT</pubDate>
            <atom:updated>2017-02-09T16:12:38.908Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/792/0*4hr9g8eul3npFmm_.png" /></figure><p>This command stops all docker containers.</p><pre>alias dsac=&#39;docker stop $(docker ps -a -q)&#39;</pre><p><em>Originally published at </em><a href="http://blog.adriagalin.com/2016/08/docker-stop-all-containers/"><em>Adrià Galín</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=938a7e6a6e39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hello world! — Hola món! — ¡Hola mundo!]]></title>
            <link>https://medium.com/@adriagalin/hello-world-hola-m%C3%B3n-hola-mundo-f77cad045150?source=rss-4bd14a24104b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f77cad045150</guid>
            <dc:creator><![CDATA[Adrià Galín Figueras]]></dc:creator>
            <pubDate>Mon, 22 Aug 2016 21:24:04 GMT</pubDate>
            <atom:updated>2017-02-09T16:09:19.319Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/930/0*ZPb2NqKm8z9J8KG2.jpg" /></figure><p>Hi,</p><p>welcome to my personal blog. My name is Adrià Galin and I work as a Development and Operations (DevOps) Engineer.</p><p>This is the beginning of a blog where words matter and knowledge exchange and experience sharing count. I will talk about technology such as docker, kubernetes, containers and ansible, but also about ideas, travel and miscellaneous topics.</p><p>The hardest part comes now: fill it with content!!</p><p>I hope you enjoy it.</p><p>Hola a tots i totes,</p><p>benvinguts al meu blog personal. Sóc l’Adrià Galín Enginyer Informàtic especialitzat en Desenvolupament i Operacions (DevOps Engineer).</p><p>Després d’anys de ser una fita, per fi hi poso fil a l’agulla. Ja toca, no més excuses. En aquest blog parlaré sobre tecnologia: docker, kubernetes, containers, ansible, etc; idees, viatges, miscel·lània, etc. Desitjo compartir amb tots vosaltres les coses que he après durant aquest temps, i les que continuaré aprenent. Crec que podran ser de gran utilitat. Ara toca la tasca més difícil, nodrir-lo de contingut.</p><p>Espero que us agradi.</p><p>Adrià.</p><p>Hola a tod@s,</p><p>bienvenidos a mi blog personal. Soy Adrià Galín Ingeniero Informático especializado en Desarrollo y Operaciones (DevOps Engineer).</p><p>Después de años marcándomelo como objetivo, por fin me pongo a ello. Ya toca, no más excusas. En él hablaré sobre tecnología: docker, kubernetes, containers, ansible, etc; ideas, viajes, miscelánea, etc. Deseo compartir cosas que he aprendido durante este tiempo. Creo que pueden ser de gran utilidad. Ahora toca la tarea más dura, nutrirlo de contenido.</p><p>Espero que os guste.</p><p>Adrià.</p><pre>ruby -e &#39;print &quot;Hola Mundo\n&quot;&#39;</pre><pre>// server.js<br>var http = require(&#39;http&#39;);<br>var server = http.createServer();<br>function control(petic, resp) {<br>resp.writeHead(200, {&#39;content-type&#39;: &#39;text/plain&#39;});<br>resp.write(&#39;Hola, Mundo!&#39;);<br>resp.end();<br>}<br>server.on(&#39;request&#39;, control);<br>server.listen(8080);<br>// End<br>$ node server.js</pre><pre>// hello-world.go<br>package main<br>import &quot;fmt&quot;<br>func main() {<br>    fmt.Println(&quot;hello world&quot;)<br>}<br>// End<br><br>$ go run hello-world.go</pre><pre>ansible all -i &quot;localhost,&quot; -c local -m shell -a &#39;echo hello world&#39;</pre><p><em>Originally published at </em><a href="http://blog.adriagalin.com/2016/08/hello-world-hola-mon-hola-mundo/"><em>Adrià Galín</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f77cad045150" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>