Package org.apache.sentry

Examples of org.apache.sentry.SentryUserException


      String currSchemaVersion;
      while ((currSchemaVersion = bfReader.readLine()) != null) {
        upgradeOrderList.add(currSchemaVersion.trim());
      }
    } catch (FileNotFoundException e) {
      throw new SentryUserException("File " + upgradeListFile + "not found ", e);
    } catch (IOException e) {
      throw new SentryUserException("Error reading " + upgradeListFile, e);
    }
    sentrySchemaVersions = upgradeOrderList.toArray(new String[0]);
  }
View Full Code Here


    String initScriptName = INIT_FILE_PREFIX + dbType + "-" + toVersion
        + SQL_FILE_EXTENSION;
    // check if the file exists
    if (!(new File(getSentryStoreScriptDir() + File.separatorChar
        + initScriptName).exists())) {
      throw new SentryUserException(
          "Unknown version specified for initialization: " + toVersion);
    }
    return initScriptName;
  }
View Full Code Here

            foundRole = true;
            break;
          }
        }
        if (!foundRole) {
          throw new SentryUserException("Not authorized to set role " + name);
        }
      }
      return new ActiveRoleSet(Sets.newHashSet(ROLE_SET_SPLITTER.split(name)));
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.sentry.SentryUserException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.