Export all does not work as Hive managed table location cannot be changed
Jira:
@@ -650,7 +650,7 @@ class HS2Api(Api):
hql = '''
DROP TABLE IF EXISTS `%(table)s`;
-CREATE TABLE `%(table)s` ROW FORMAT DELIMITED
+CREATE EXTERNAL TABLE `%(table)s` ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\\t'
ESCAPED BY '\\\\'
LINES TERMINATED BY '\\n'
@@ -658,8 +658,6 @@ CREATE TABLE `%(table)s` ROW FORMAT DELIMITED
AS
%(hql)s;
-ALTER TABLE `%(table)s` SET TBLPROPERTIES('EXTERNAL'='TRUE');
-
DROP TABLE IF EXISTS `%(table)s`;
''' % {
'table': _get_snippet_name(notebook, unique=True, table_format=True),
