{"id":55419,"library":"spark-hive-2-11","title":"Spark Hive (Scala 2.11)","description":"Spark Hive provides integration between Apache Spark and Apache Hive for SQL queries on large datasets, targeting Scala 2.11.","status":"active","version":"2.4.8","language":"java","source_language":null,"source_url":"https://github.com/apache/spark","tags":["spark","hive","sql","big-data","scala","2.11"],"install":[{"cmd":"<dependency>\n  <groupId>org.apache.spark</groupId>\n  <artifactId>spark-hive_2.11</artifactId>\n  <version>2.4.8</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.apache.spark:spark-hive_2.11:2.4.8'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"HiveContext","correct":"org.apache.spark.sql.hive.HiveContext"}],"quickstart":{"code":"import org.apache.spark.sql.hive.HiveContext;\nimport org.apache.spark.SparkConf;\nimport org.apache.spark.SparkContext;\n\nSparkConf conf = new SparkConf().setAppName(\"HiveExample\");\nSparkContext sc = new SparkContext(conf);\nHiveContext hiveContext = new HiveContext(sc);\nhiveContext.sql(\"SELECT * FROM table\").show();","lang":"java","description":"Creates a HiveContext and executes a SQL query on Hive tables."},"warnings":[{"fix":"Use Spark with Scala 2.12 or 2.13.","message":"Scala 2.11 is outdated; consider migrating to a newer Scala version for better performance and support.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'2.11':4,23,31 'apach':10,13 'big':28 'big-data':27 'data':29 'dataset':20 'hive':2,6,14,25 'integr':8 'larg':19 'provid':7 'queri':17 'scala':3,22,30 'spark':1,5,11,24 'sql':16,26 'target':21","created_at":"2026-06-15T09:49:45.136587+00:00","updated_at":"2026-06-15T09:49:45.136587+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://spark.apache.org/","github":"https://github.com/apache/spark","docs":"https://appdoc.app/artifact/org.apache.spark/spark-hive_2.11/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}