Good morning,
I’m developing a use case in which I used spark and the hive datawarehouse 
connector library but I’m facing some issues when executing my unit test, since 
I couldn’t make it work I’ve created a dummy test in which I just create a 
spark session, create a hive session, create a table and describe the table and 
I couldn’t make it work either.
I’ve tried with:

  *   the default configuration: in this test derby can’t be find in the 
classpath but its embedded in the hive-warehouse-connector
  *   custom hive-site.xml using derby embedded database: throws null pointer 
exception
  *   custom hive-site.xml using h2 embedded database: throws null pointer 
exception in the same point that the previous test.
and it fails every time with a null pointer exception.
I’ve attached my pom.xml, the test class and the hive-site.xml for each case.

Environment:

  *   IntelliJ IDEA 2018.1.6 (Community Edition)
  *   Build #IC-181.5540.7, built on July 11, 2018
  *   JRE: 1.8.0_152-release-1136-b39 x86_64
  *   JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  *   macOS 10.13.6
  *   spark version: 2.3.2
  *   scala version: 2.11.8
  *   scalatest version: 3.0.5
  *   hive-warehouse-connector version: 1.0.0.3.1.0.0-78
  *   h2 version: 1.4.199

Am I missing any config property in the hive-site.xml or other config file? Or 
Am I doing something wrong?
Thanks,
Jorge


________________________________

" Este e-mail y sus archivos adjuntos son confidenciales y están dirigidos 
exclusivamente a la(s) persona(s) destinataria prevista. Si ha recibido este 
mensaje por error, por favor, notifique inmediatamente al remitente y elimine 
este mensaje. La empresa no firma contratos por e-mail y todas las 
negociaciones están sujetas a la firma de un contrato por escrito.

This e-mail and any attached files are confidential and intended for the named 
addressee(s) only. If you have received this message in error, please notify 
the sender and delete the email immediately. The company does not conclude 
contracts by email and all negotiations are subject to written contract. "

<<attachment: hive_3.zip>>

Reply via email to