hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chuan Liu (JIRA)" <>
Subject [jira] [Created] (HIVE-7009) HIVE_USER_INSTALL_DIR could not bet set to non-HDFS filesystem
Date Fri, 02 May 2014 20:52:15 GMT
Chuan Liu created HIVE-7009:

             Summary: HIVE_USER_INSTALL_DIR could not bet set to non-HDFS filesystem
                 Key: HIVE-7009
             Project: Hive
          Issue Type: Bug
          Components: Tez
    Affects Versions: 0.13.0
            Reporter: Chuan Liu

In {{hive/ql/exec/tez/}}, we enforce the user path get from {{HIVE_USER_INSTALL_DIR}}
to be HDFS. This makes it impossible to run Hive+Tez jobs on non-HDFS filesystem, e.g. WASB.
Relevant code are as follows:
  public Path getDefaultDestDir(Configuration conf) throws LoginException, IOException {
    UserGroupInformation ugi = ShimLoader.getHadoopShims().getUGIForConf(conf);
    String userName = ShimLoader.getHadoopShims().getShortUserName(ugi);
    String userPathStr = HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_USER_INSTALL_DIR);
    Path userPath = new Path(userPathStr);
    FileSystem fs = userPath.getFileSystem(conf);
    if (!(fs instanceof DistributedFileSystem)) {
      throw new IOException(ErrorMsg.INVALID_HDFS_URI.format(userPathStr));

Exceptions running jobs with defaultFs configured to WASB.
2014-05-01 00:21:39,847 ERROR exec.Task ( - Failed to execute tez
graph. wasb:// is not
a hdfs uri
	at org.apache.hadoop.hive.ql.exec.tez.DagUtils.getDefaultDestDir(
	at org.apache.hadoop.hive.ql.exec.tez.DagUtils.getHiveJarDirectory(
	at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.createJarLocalResource(
	at org.apache.hadoop.hive.ql.exec.tez.TezTask.execute(
	at org.apache.hadoop.hive.ql.exec.Task.executeTask(
	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(
	at org.apache.hadoop.hive.ql.Driver.launchTask(
	at org.apache.hadoop.hive.ql.Driver.execute(
	at org.apache.hadoop.hive.ql.Driver.runInternal(
	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(
	at org.apache.hadoop.hive.cli.CliDriver.processCmd(
	at org.apache.hadoop.hive.cli.CliDriver.processLine(
	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(
	at org.apache.hadoop.hive.cli.CliDriver.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.hadoop.util.RunJar.main(

This message was sent by Atlassian JIRA

View raw message