Re: Is Hive CREATE DATABASE IF NOT EXISTS atomic

2016-04-07 Thread Mich Talebzadeh
If you are using hiveContext to create a Hive database it will work. In general you should use Hive to create a Hive database and create tables within the already existing Hive database from Spark. Make sure that you qualify with sql("DROP TABLE IF EXISTS accounts.ll_18740868") var sqltext : S

Re: Is Hive CREATE DATABASE IF NOT EXISTS atomic

2016-04-07 Thread Xiao Li
Hi, Assuming you are using 1.6 or before, this is a native Hive command. Basically, the execution of Database creation is completed by Hive. Thanks, Xiao Li 2016-04-07 15:23 GMT-07:00 antoniosi : > Hi, > > I am using hiveContext.sql("create database if not exists ") to > create a hive db. Is