hive Questions
5
I use Spring-Boot and want to connect it to Hive by spring-data-hadoop 2.3.0.M1-hdp23. The problem is that my application doesn't start if I add hive-jdbc to my pom.xml. The errorlog (partly) is:
...
Forehand asked 11/8, 2015 at 13:18
3
I need to replace the square brackets around a key:value pair similar to the following. Any help is much appreciated!
data in 'properties' looks like this:
name: property1
value: [12345667:97764...
Windstorm asked 15/1, 2014 at 2:20
4
On an AWS EMR cluster, I'm trying to write a query result to parquet using Pyspark but face the following error:
Caused by: java.lang.RuntimeException: Parquet record is malformed: empty fields ar...
Wreckful asked 10/1, 2020 at 1:13
7
I am trying to create partition for my Table inorder to update a value.
This is my sample data
1,Anne,Admin,50000,A
2,Gokul,Admin,50000,B
3,Janet,Sales,60000,A
I want to update Janet's Departme...
4
Using Hive 2.3.7 on AWS EMR (5.33.1) I have created a database which shows correctly when calling show databases;. I then create a table which seems to work correctly (no exceptions). When I call d...
Inwrap asked 2/12, 2021 at 10:35
4
How to execute hive commands directly from .hql file?
3
Solved
I have a scenario to compare two different tables source and destination from two separate remote hive servers, can we able to use two SparkSessions something like I tried below:-
val spark = Spa...
Altimetry asked 6/7, 2017 at 12:43
6
I tried to install hive on a raspberry pi 2. I installed Hive by uncompress zipped Hive package and configure $HADOOP_HOME and $HIVE_HOME manually under hduser user-group I created. When running hi...
Valedictory asked 26/2, 2016 at 15:14
9
Solved
I have orc table in hive I want to drop column from this table
ALTER TABLE table_name drop col_name;
but I am getting the following exception
Error occurred executing hive query: OK FAILED: ...
6
Solved
I want to create a hive table using my Spark dataframe's schema. How can I do that?
For fixed columns, I can use:
val CreateTable_query = "Create Table my table(a string, b string, c double)"
spa...
Indore asked 15/2, 2017 at 22:58
6
5
I need to deploy Big Data Cluster on our servers. But I just know about knowledge of Apache Spark. Now I need to know whether Spark SQL can completely replace Apache Impala or Apache Hive.
I...
Kaiulani asked 25/10, 2016 at 9:37
2
I recently ran into the following error "AthenaQueryError: Athena query failed: "NOT_SUPPORTED: Unsupported Hive type", and for this I followed this stack overflow link: converting t...
Marrowbone asked 10/3, 2022 at 9:1
3
Solved
I created a 3 node Hadoop cluster with 1 namenode and 2 datanode.
I can perform a read/write query from Hive shell, but not beeline.
I found many suggestions and answers related to this issue.
In...
3
Solved
I want to select all columns in a table except StudentAddress and hence I wrote following query:
select `(StudentAddress)?+.+` from student;
It gives following error in Squirrel Sql client.
org....
Flu asked 26/4, 2017 at 21:1
8
Solved
Is there any way to identify which database the user is using while using the command line interface ?
Whitesmith asked 1/8, 2013 at 6:14
4
Since we can get the row number assigned using the row_number() and if we want to find the rank of each row without skipping of any number within the partition using dense_rank(), why do we need ra...
Derivation asked 19/10, 2020 at 3:0
3
I'm trying to save dataframe in table hive.
In spark 1.6 it's work but after migration to 2.2.0 it doesn't work anymore.
Here's the code:
blocs
.toDF()
.repartition($"col1", $"col2", $"col3", ...
Iceland asked 9/1, 2019 at 14:42
3
In hive, I can set the prompt to be the currently selected database. Is it possible to do the same in MySQL?
I want to replace mysql with kundoor in the image below.
Poulter asked 15/8, 2017 at 9:55
4
Solved
I tried dropping a HIVE table. Screen hangs. I tried in both HIVE CLI and beeline. Neither the table getting dropped nor the data getting inserted into the table. Need help!
Kinswoman asked 29/12, 2016 at 15:9
7
Solved
I am interested in being able to retrieve the location value of a Hive table given a Spark object (SparkSession). One way to obtain this value is by parsing the output of the location via the follo...
Typebar asked 6/1, 2019 at 10:27
4
I am trying to create a table which has a complex data type. And the data types are listed below.
array
map
array< map < String,String> >
I am trying to create a data structure of 3 type ...
Lynda asked 10/6, 2015 at 0:7
3
I'm trying to use Apache Iceberg for writing data to a specified location(S3/local). Following is the configuration used below.
SBT:
libraryDependencies += "org.apache.spark" %% "spa...
Mirianmirielle asked 1/9, 2022 at 10:47
2
In the spark-shell (scala), we import,
org.apache.spark.sql.hive.thriftserver._
for starting Hive Thrift server programatically for a particular hive context as
HiveThriftServer2.startWithContext(h...
Sweptwing asked 14/4, 2016 at 16:32
4
Solved
How to enable the %sql Magic string on jupyter notebook and how to use %sql magic string on a cell with the below line of code.
spark.sql('select * from test').show()
Metanephros asked 24/7, 2019 at 14:1
1 Next >
© 2022 - 2024 — McMap. All rights reserved.