{"id":67881,"library":"spark-hive-2-10","title":"Spark Hive 2.10","description":"Provides integration between Apache Spark and Apache Hive for Scala 2.10.","status":"active","version":"2.2.3","language":"java","source_language":null,"source_url":"https://github.com/apache/spark","tags":["spark","hive","big-data","sql","java"],"install":[{"cmd":"<dependency>\n  <groupId>org.apache.spark</groupId>\n  <artifactId>spark-hive_2.10</artifactId>\n  <version>2.2.3</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.apache.spark:spark-hive_2.10:2.2.3'","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\npublic class HiveExample {\n    public static void main(String[] args) {\n        SparkConf conf = new SparkConf().setAppName(\"HiveExample\");\n        SparkContext sc = new SparkContext(conf);\n        HiveContext hiveContext = new HiveContext(sc);\n        hiveContext.sql(\"SELECT 1\").show();\n    }\n}","lang":"java","description":"Creates a HiveContext to run SQL queries on Hive tables."},"warnings":[{"fix":"Migrate to a newer Spark version (e.g., 3.x) and use spark-hive with appropriate Scala version.","message":"Spark 2.2.3 is outdated; consider upgrading to a newer version for security and performance.","severity":"breaking","affected_versions":"2.2.3"}],"env_vars":null,"search_vec":"'2.10':3,14 'apach':7,10 'big':18 'big-data':17 'data':19 'hive':2,11,16 'integr':5 'java':21 'provid':4 'scala':13 'spark':1,8,15 'sql':20","created_at":"2026-06-17T17:42:47.624833+00:00","updated_at":"2026-06-17T17:42:47.624833+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.10/","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-17","next_check":"2026-12-14","install_tag":null}}