public static boolean isHadoop1() { return ShimLoader.getMajorVersion().startsWith("0.20"); }
public static boolean isHadoop1() { return ShimLoader.getMajorVersion().startsWith("0.20"); }
private static <T> T loadShims(Map<String, String> classMap, Class<T> xface) { String vers = getMajorVersion(); String className = classMap.get(vers); return createShim(className, xface); }
private void checkEnableLogPrerequisite(boolean enablelog, String statusdir) throws BadParam { if (enablelog && !TempletonUtils.isset(statusdir)) throw new BadParam("enablelog is only applicable when statusdir is set"); if(enablelog && "0.23".equalsIgnoreCase(ShimLoader.getMajorVersion())) { throw new BadParam("enablelog=true is only supported with Hadoop 1.x"); } } }
boolean includeQuery = false; Set<String> versionSet = new HashSet<String>(); String hadoopVer = ShimLoader.getMajorVersion();
public static boolean isHadoop1() { return ShimLoader.getMajorVersion().startsWith("0.20"); }
private static <T> T loadShims(Map<String, String> classMap, Class<T> xface) { String vers = getMajorVersion(); String className = classMap.get(vers); return createShim(className, xface); }
private static <T> T loadShims(Map<String, String> classMap, Class<T> xface) { String vers = getMajorVersion(); String className = classMap.get(vers); return createShim(className, xface); }
public static void main(String[] args) { System.out.println(VersionInfo.getVersion()); System.out.println(ShimLoader.getMajorVersion()); } }
private static <T> T loadShims(Map<String, String> classMap, Class<T> xface) { String vers = getMajorVersion(); String className = classMap.get(vers); return createShim(className, xface); }
@SuppressWarnings("unchecked") private static <T> T loadShims(Map<String, String> classMap, Class<T> xface) { String vers = getMajorVersion(); String className = classMap.get(vers); return createShim(className, xface); }
private static <T> T loadShims(Map<String, String> classMap, Class<T> xface) { String vers = getMajorVersion(); String className = classMap.get(vers); return createShim(className, xface); }
public static synchronized HadoopThriftAuthBridge getHadoopThriftAuthBridge() { if ("0.20S".equals(getMajorVersion())) { return createShim("org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S", HadoopThriftAuthBridge.class); } else { return new HadoopThriftAuthBridge(); } }
private void checkEnableLogPrerequisite(boolean enablelog, String statusdir) throws BadParam { if (enablelog && !TempletonUtils.isset(statusdir)) throw new BadParam("enablelog is only applicable when statusdir is set"); if(enablelog && "0.23".equalsIgnoreCase(ShimLoader.getMajorVersion())) { throw new BadParam("enablelog=true is only supported with Hadoop 1.x"); } } }