{"id":13763,"date":"2022-09-27T12:14:50","date_gmt":"2022-09-27T19:14:50","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=13763"},"modified":"2024-05-08T06:23:23","modified_gmt":"2024-05-08T13:23:23","slug":"databricks-couchbase-spark-sql-quickstart","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/es\/databricks-couchbase-spark-sql-quickstart\/","title":{"rendered":"Inicio r\u00e1pido: Couchbase con Apache Spark en Databricks"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Couchbase es la base de datos documental NoSQL l\u00edder en el mundo. Ofrece un rendimiento, una flexibilidad y una escalabilidad inigualables en el per\u00edmetro, en las instalaciones y en la nube. Spark es uno de los entornos de computaci\u00f3n en memoria m\u00e1s populares. Las dos plataformas pueden combinarse para ejecutar funciones de consulta, ingenier\u00eda de datos, ciencia de datos y aprendizaje autom\u00e1tico incre\u00edblemente r\u00e1pidas.<\/span><\/p>\n<p><span style=\"font-weight: 400\">En este QuickStart, te guiar\u00e9 a trav\u00e9s de los sencillos pasos para configurar Couchbase con Databricks* y ejecutar consultas de datos de Couchbase y consultas SQL de Spark.<\/span><\/p>\n<p><i><span style=\"font-weight: 400\">*Nota: Los pasos de este QuickStart se han validado con Databricks runtime 10.4 LTS.<\/span><\/i><\/p>\n<h2><span style=\"font-weight: 400\">Configurar<\/span><\/h2>\n<h3><span style=\"font-weight: 400\">Requisitos previos<\/span><\/h3>\n<p><span style=\"font-weight: 400\">Para completar este QuickStart, necesitar\u00e1 lo siguiente:<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Un cl\u00faster Couchbase y <em>viaje-muestra<\/em> accesible al cl\u00faster Databricks. He utilizado un cl\u00faster Couchbase en una m\u00e1quina AWS EC2.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">A<\/span>\u00a0<a href=\"https:\/\/databricks.com\/try-databricks?utm_medium=paid+search&amp;utm_source=google&amp;utm_campaign=14272820537&amp;utm_adgroup=133937946470&amp;utm_content=trial&amp;utm_offer=try-databricks&amp;utm_ad=564241575790&amp;utm_term=databricks%20login&amp;gclid=CjwKCAiAgvKQBhBbEiwAaPQw3JW8bFOKAc13o921CzNkQf0KwC39UQ_x8NZEBFiihDxpvNutxbSpNhoCjIQQAvD_BwE\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Cuenta Databricks<\/span><\/a><span style=\"font-weight: 400\"> - hay disponibles pruebas gratuitas que requieren una cuenta de AWS, Azure o GCP.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Couchbase <em>conector de chispa<\/em> versi\u00f3n 3.2.2, disponible en<\/span>\u00a0<a href=\"https:\/\/mvnrepository.com\/artifact\/com.couchbase.client\/spark-connector\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Maven<\/span><\/a><span style=\"font-weight: 400\">:\u00a0<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">En la pantalla de creaci\u00f3n del cl\u00faster, en la secci\u00f3n <strong>Bibliotecas<\/strong> pesta\u00f1a.  Seleccione <strong>Instale<\/strong> nuevo y busque el paquete en Maven Central.  Vea el siguiente ejemplo:<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13764\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/09\/image1-1024x356.png\" alt=\"\" width=\"900\" height=\"313\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image1-1024x356.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image1-300x104.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image1-768x267.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image1-1536x533.png 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image1-1320x458.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image1.png 1768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">En <strong>Instale<\/strong> se configurar\u00e1 como en el ejemplo siguiente:<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13767\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/09\/image4-1024x562.png\" alt=\"\" width=\"900\" height=\"494\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image4-1024x562.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image4-300x165.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image4-768x421.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image4.png 1192w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><br \/>\n<\/span><\/p>\n<h3><span style=\"font-weight: 400\">Configuraci\u00f3n<\/span><\/h3>\n<p><span style=\"font-weight: 400\">Antes de empezar, necesitamos configurar los siguientes par\u00e1metros en el cluster Databricks<\/span> <span style=\"font-weight: 400\"><strong>opciones avanzadas<\/strong> Configuraci\u00f3n de Spark. Esto se puede hacer<\/span> <span style=\"font-weight: 400\">al crear un cl\u00faster (v\u00e9ase la impresi\u00f3n de pantalla a continuaci\u00f3n):<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13765\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/09\/image2.png\" alt=\"\" width=\"337\" height=\"172\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image2.png 337w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image2-300x153.png 300w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/p>\n<p><span style=\"font-weight: 400\">Puede copiar y pegar la configuraci\u00f3n de abajo y sustituir los par\u00e1metros en <em>&lt;&gt;<\/em> con los valores de su cl\u00faster Couchbase en el campo <\/span><span style=\"font-weight: 400\"><strong>opciones avanzadas<\/strong> Configuraci\u00f3n de Spark<\/span><span style=\"font-weight: 400\">:\u00a0<\/span><\/p>\n<pre class=\"lang:default decode:true\">\u00a0 spark.couchbase.password &lt;password&gt;\r\n\u00a0 spark.couchbase.implicitBucket &lt;travel-sample&gt;\r\n\u00a0 spark.couchbase.connectionString &lt;hostname&gt;\r\n\u00a0 spark.couchbase.username &lt;username&gt;\r\n\u00a0 spark.databricks.delta.preview.enabled true<\/pre>\n<p><span style=\"font-weight: 400\">En primer lugar, vamos a ejecutar las importaciones necesarias. Copie el c\u00f3digo de ejemplo a continuaci\u00f3n en un cuaderno en blanco conectado a un cl\u00faster con la configuraci\u00f3n anterior<\/span><\/p>\n<pre class=\"lang:default decode:true\">  import com.couchbase.spark._\r\n\u00a0 import org.apache.spark.sql._\r\n\u00a0 import com.couchbase.client.scala.json.JsonObject\r\n\u00a0 import com.couchbase.spark.kv.Get\r\n\u00a0 import com.couchbase.client.scala.kv.MutateInSpec\r\n\u00a0 import com.couchbase.spark.kv.MutateIn\r\n\u00a0 import com.couchbase.client.scala.kv.LookupInSpec\r\n\u00a0 import com.couchbase.spark.kv.LookupIn\r\n\u00a0 import com.couchbase.client.scala.query.QueryOptions\r\n  import com.couchbase.spark.query.QueryOptions\r\n  import com.couchbase.client.scala.analytics.AnalyticsOptions<\/pre>\n<p><span style=\"font-weight: 400\">Ahora, vamos a obtener algunos documentos por claves desde Couchbase <em>viaje-muestra<\/em> utilizando el siguiente c\u00f3digo:<\/span><\/p>\n<pre class=\"lang:default decode:true\"> sc\r\n\u00a0 .couchbaseGet(Seq(Get(\"airline_10\"), Get(\"airline_10642\")))\r\n\u00a0 .collect()\r\n\u00a0 .foreach(result =&gt; println(result.contentAs[JsonObject]))<\/pre>\n<p>Genial, nos hemos conectado al cl\u00faster y hemos devuelto nuestro primer RDD (Resilient Distributed Dataset).<\/p>\n<p><span style=\"font-weight: 400\">Podemos consultar los datos usando SQL++ (lenguaje de consulta de Couchbase basado en SQL).  Ejecuta el siguiente c\u00f3digo como ejemplo:<\/span><\/p>\n<pre class=\"lang:default decode:true\"> sc\r\n\u00a0 .couchbaseQuery[JsonObject](\"select country, count(*) as count from `travel-sample` where type = 'airport' group by country order by count desc\")\r\n\u00a0 .collect()\r\n\u00a0 .foreach(println)<\/pre>\n<h2><span style=\"font-weight: 400\">Consulta del servicio de an\u00e1lisis<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Couchbase tambi\u00e9n ofrece un servicio de an\u00e1lisis para el an\u00e1lisis operativo y an\u00e1lisis en tiempo real a continuaci\u00f3n es un ejemplo de una consulta de an\u00e1lisis:<\/span><\/p>\n<pre class=\"lang:default decode:true\">val query = \"SELECT ht.city,ht.state,COUNT(*) AS num_hotels FROM `travel-sample`.inventory.hotel ht GROUP BY ht.city,ht.state HAVING COUNT(*) &gt; 30\"\r\nsc.couchbaseAnalyticsQuery[JsonObject](query).collect().foreach(println)<\/pre>\n<h2><span style=\"font-weight: 400\">Pasemos ahora a Spark SQL<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Utilice el c\u00f3digo siguiente para crear vistas temporales para <em>l\u00edneas a\u00e9reas<\/em> y <em>aeropuertos<\/em> Marcos de datos:<\/span><\/p>\n<pre class=\"lang:default decode:true\">val airlines = spark.read.format(\"couchbase.query\")\r\n\u00a0 .option(QueryOptions.Filter, \"type = 'airline'\")\r\n\u00a0 .load()\r\nairlines.createOrReplaceTempView(\"airlines\")\r\n\u00a0\r\nval airports = spark.read.format(\"couchbase.query\")\r\n\u00a0 .option(QueryOptions.Filter, \"type = 'airport'\")\r\n\u00a0 .load()\r\nairports.createOrReplaceTempView(\"airports\")<\/pre>\n<p><span style=\"font-weight: 400\">Ahora podemos ejecutar consultas Spark SQL en las vistas, por ejemplo:<\/span><\/p>\n<p><span style=\"font-weight: 400\">Obtener las compa\u00f1\u00edas a\u00e9reas en orden ascendente:<\/span><\/p>\n<pre class=\"nums:false lang:default decode:true\">%sql select * from airlines order by name asc limit 10<\/pre>\n<p><span style=\"font-weight: 400\">Obtenga las compa\u00f1\u00edas a\u00e9reas agrupadas por pa\u00edses:<\/span><\/p>\n<pre class=\"nums:false lang:default decode:true\">%sql select country, count(*) from airlines group by country;<\/pre>\n<p><span style=\"font-weight: 400\">Y por \u00faltimo, visualicemos los aeropuertos por pa\u00eds utilizando un <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/guides\/create-user-defined-function.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">UDF<\/span><\/a><span style=\"font-weight: 400\"> (User Defined Function) junto con la funci\u00f3n de mapeo de Databricks.  Crear el UDF utilizando el SQL ++ a continuaci\u00f3n:<\/span><\/p>\n<pre class=\"lang:default decode:true\">val countrymap = (s: String) =&gt; {\r\n s match {\r\n  case \"France\" =&gt; \"FRA\"\r\n  case \"United States\" =&gt; \"USA\"\r\n  case \"United Kingdom\" =&gt; \"GBR\"\r\n }\r\n}\r\nspark.udf.register(\"countrymap\", countrymap)<\/pre>\n<p><span style=\"font-weight: 400\">Seleccione los recuentos de aeropuertos por pa\u00eds y visualice los resultados:<\/span><\/p>\n<pre class=\"nums:false lang:default decode:true\">%sql select countrymap(country), count(*) from airports group by country;<\/pre>\n<p><span style=\"font-weight: 400\">Despu\u00e9s de completar este Quickstart, su resultado debe ser similar a la visualizaci\u00f3n de abajo:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13766\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/09\/image3.png\" alt=\"\" width=\"469\" height=\"191\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image3.png 469w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/image3-300x122.png 300w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/p>\n<h2><span style=\"font-weight: 400\">Lo que hemos conseguido<\/span><\/h2>\n<p><span style=\"font-weight: 400\">En este QuickStart, he descrito c\u00f3mo utilizar el spark-connector de Couchbase con Databricks para crear RDDs, ejecutar consultas SQL de Couchbase y Spark, crear un UDF, y utilizar la funci\u00f3n de mapeo de Databricks para visualizar los resultados. Estos pasos demuestran el proceso utilizado para acceder, analizar y visualizar datos en un cl\u00faster Couchbase desde una interfaz de cuaderno Databricks.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Pr\u00f3ximos pasos<\/span><\/h2>\n<p><span style=\"font-weight: 400\">M\u00e1s informaci\u00f3n<\/span><a href=\"https:\/\/www.couchbase.com\/blog\/es\/products\/capella\/\" target=\"_blank\" rel=\"noopener\"> <span style=\"font-weight: 400\">Couchbase Capella<\/span><\/a><span style=\"font-weight: 400\">:<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Prueba Capella suscribi\u00e9ndote a un<\/span><a href=\"https:\/\/cloud.couchbase.com\/?href=Playground\" target=\"_blank\" rel=\"noopener\"> <span style=\"font-weight: 400\">prueba gratuita de 30 d\u00edas<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/cloud.couchbase.com\/sign-up\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Conecte su grupo de prueba al Playground<\/span><\/a> <span style=\"font-weight: 400\">o conecta un proyecto para probarlo por ti mismo.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Visite el<\/span><a href=\"https:\/\/www.couchbase.com\/blog\/es\/developers\/\" target=\"_blank\" rel=\"noopener\"> <span style=\"font-weight: 400\">Portal para desarrolladores de Couchbase<\/span><\/a> <span style=\"font-weight: 400\">que toneladas de<\/span><a href=\"https:\/\/developer.couchbase.com\/tutorials\" target=\"_blank\" rel=\"noopener\"> <span style=\"font-weight: 400\">tutoriales\/gu\u00edas de inicio r\u00e1pido<\/span><\/a> <span style=\"font-weight: 400\">y v\u00edas de aprendizaje que le ayudar\u00e1n a empezar.<\/span><\/li>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/docs.couchbase.com\/home\/sdk.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Consulte la documentaci\u00f3n<\/span><\/a> <span style=\"font-weight: 400\">para obtener m\u00e1s informaci\u00f3n sobre los SDK de Couchbase.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none\"><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Gracias por leer este post. Si tiene alguna pregunta o comentario, por favor conecte con nosotros en el<\/span>\u00a0<a href=\"https:\/\/www.couchbase.com\/blog\/es\/forums\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Couchbase<\/span><\/a> <span style=\"font-weight: 400\">Foros<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Couchbase is the world\u2019s leading NoSQL document database. It offers unmatched performance, flexibility and scalability on the edge, on-premise and in the cloud. Spark is one of the most popular in-memory computing environments. The two platforms can be combined to [&hellip;]<\/p>","protected":false},"author":70772,"featured_media":13769,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[2242,2225,1818,1812,2201],"tags":[9719,1610],"ppma_author":[9208],"class_list":["post-13763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-connectors","category-cloud","category-java","category-n1ql-query","category-tools-sdks","tag-databricks","tag-spark"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>QuickStart: Couchbase with Apache Spark on Databricks<\/title>\n<meta name=\"description\" content=\"Get started quickly with Apache Spark SQL and more using the Couchbase provider on the Databricks platform.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/es\/databricks-couchbase-spark-sql-quickstart\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"QuickStart: Couchbase with Apache Spark on Databricks\" \/>\n<meta property=\"og:description\" content=\"Get started quickly with Apache Spark SQL and more using the Couchbase provider on the Databricks platform.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/es\/databricks-couchbase-spark-sql-quickstart\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-27T19:14:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-08T13:23:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/09\/databricks-couchbase-spark-sql-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1610\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Rick Jacobs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rick Jacobs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/\"},\"author\":{\"name\":\"Rick Jacobs\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/ecb4001e1e4b88a5c44d20c7bf39fcd3\"},\"headline\":\"QuickStart: Couchbase with Apache Spark on Databricks\",\"datePublished\":\"2022-09-27T19:14:50+00:00\",\"dateModified\":\"2024-05-08T13:23:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/\"},\"wordCount\":593,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/databricks-couchbase-spark-sql-scaled.jpg\",\"keywords\":[\"databricks\",\"spark\"],\"articleSection\":[\"Connectors\",\"Couchbase Capella\",\"Java\",\"SQL++ \/ N1QL Query\",\"Tools &amp; SDKs\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/\",\"name\":\"QuickStart: Couchbase with Apache Spark on Databricks\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/databricks-couchbase-spark-sql-scaled.jpg\",\"datePublished\":\"2022-09-27T19:14:50+00:00\",\"dateModified\":\"2024-05-08T13:23:23+00:00\",\"description\":\"Get started quickly with Apache Spark SQL and more using the Couchbase provider on the Databricks platform.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/databricks-couchbase-spark-sql-scaled.jpg\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/databricks-couchbase-spark-sql-scaled.jpg\",\"width\":2560,\"height\":1610,\"caption\":\"an overview of retrieval augmentation generation\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"QuickStart: Couchbase with Apache Spark on Databricks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/ecb4001e1e4b88a5c44d20c7bf39fcd3\",\"name\":\"Rick Jacobs\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/398e492dda1c41103d3dfa60dfd80cfe\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4df9d5daa89732e9e520a2ded9e366daf2b32b5aea74313c561073fbc3784be9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4df9d5daa89732e9e520a2ded9e366daf2b32b5aea74313c561073fbc3784be9?s=96&d=mm&r=g\",\"caption\":\"Rick Jacobs\"},\"description\":\"Rick Jacobs is the Technical Product Marketing Manager at Couchbase. His varied background includes experience at many of the world\u2019s leading organizations such as Computer Sciences Corporation, IBM, Cloudera etc. He comes with over 15 years of general technology experience garnered from serving in development, consulting, data science, sales engineering and technical marketing roles. He holds several academic degrees including an MS in Computational Science from George Mason University.\",\"url\":\"https:\/\/www.couchbase.com\/blog\/es\/author\/rick\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Inicio r\u00e1pido: Couchbase con Apache Spark en Databricks","description":"Empieza r\u00e1pidamente con Apache Spark SQL y m\u00e1s usando el proveedor Couchbase en la plataforma Databricks.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/es\/databricks-couchbase-spark-sql-quickstart\/","og_locale":"es_MX","og_type":"article","og_title":"QuickStart: Couchbase with Apache Spark on Databricks","og_description":"Get started quickly with Apache Spark SQL and more using the Couchbase provider on the Databricks platform.","og_url":"https:\/\/www.couchbase.com\/blog\/es\/databricks-couchbase-spark-sql-quickstart\/","og_site_name":"The Couchbase Blog","article_published_time":"2022-09-27T19:14:50+00:00","article_modified_time":"2024-05-08T13:23:23+00:00","og_image":[{"width":2560,"height":1610,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/09\/databricks-couchbase-spark-sql-scaled.jpg","type":"image\/jpeg"}],"author":"Rick Jacobs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rick Jacobs","Est. reading time":"4 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/"},"author":{"name":"Rick Jacobs","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/ecb4001e1e4b88a5c44d20c7bf39fcd3"},"headline":"QuickStart: Couchbase with Apache Spark on Databricks","datePublished":"2022-09-27T19:14:50+00:00","dateModified":"2024-05-08T13:23:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/"},"wordCount":593,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/databricks-couchbase-spark-sql-scaled.jpg","keywords":["databricks","spark"],"articleSection":["Connectors","Couchbase Capella","Java","SQL++ \/ N1QL Query","Tools &amp; SDKs"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/","url":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/","name":"Inicio r\u00e1pido: Couchbase con Apache Spark en Databricks","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/databricks-couchbase-spark-sql-scaled.jpg","datePublished":"2022-09-27T19:14:50+00:00","dateModified":"2024-05-08T13:23:23+00:00","description":"Empieza r\u00e1pidamente con Apache Spark SQL y m\u00e1s usando el proveedor Couchbase en la plataforma Databricks.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/databricks-couchbase-spark-sql-scaled.jpg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/09\/databricks-couchbase-spark-sql-scaled.jpg","width":2560,"height":1610,"caption":"an overview of retrieval augmentation generation"},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/databricks-couchbase-spark-sql-quickstart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"QuickStart: Couchbase with Apache Spark on Databricks"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"El blog de Couchbase","description":"Couchbase, la base de datos NoSQL","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"El blog de Couchbase","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/ecb4001e1e4b88a5c44d20c7bf39fcd3","name":"Rick Jacobs","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/398e492dda1c41103d3dfa60dfd80cfe","url":"https:\/\/secure.gravatar.com\/avatar\/4df9d5daa89732e9e520a2ded9e366daf2b32b5aea74313c561073fbc3784be9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4df9d5daa89732e9e520a2ded9e366daf2b32b5aea74313c561073fbc3784be9?s=96&d=mm&r=g","caption":"Rick Jacobs"},"description":"Rick Jacobs is the Technical Product Marketing Manager at Couchbase. His varied background includes experience at many of the world\u2019s leading organizations such as Computer Sciences Corporation, IBM, Cloudera etc. He comes with over 15 years of general technology experience garnered from serving in development, consulting, data science, sales engineering and technical marketing roles. He holds several academic degrees including an MS in Computational Science from George Mason University.","url":"https:\/\/www.couchbase.com\/blog\/es\/author\/rick\/"}]}},"authors":[{"term_id":9208,"user_id":70772,"is_guest":0,"slug":"rick","display_name":"Rick Jacobs","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/4df9d5daa89732e9e520a2ded9e366daf2b32b5aea74313c561073fbc3784be9?s=96&d=mm&r=g","author_category":"","last_name":"Jacobs","first_name":"Rick","job_title":"","user_url":"","description":"Rick Jacobs es el Director T\u00e9cnico de Marketing de Producto en Couchbase.  Su variada formaci\u00f3n incluye experiencia en muchas de las principales organizaciones del mundo, como Computer Sciences Corporation, IBM, Cloudera, etc. Cuenta con m\u00e1s de 15 a\u00f1os de experiencia en tecnolog\u00eda en general, acumulada en puestos de desarrollo, consultor\u00eda, ciencia de datos, ingenier\u00eda de ventas y marketing t\u00e9cnico.  Posee varios t\u00edtulos acad\u00e9micos, incluido un m\u00e1ster en Ciencias Computacionales por la Universidad George Mason."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/posts\/13763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/users\/70772"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/comments?post=13763"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/posts\/13763\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/media\/13769"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/media?parent=13763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/categories?post=13763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/tags?post=13763"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/ppma_author?post=13763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}