public static String getClientDetailInformation() { StringBuilder buf = new StringBuilder(); buf.append("kylin.home: ").append(new File(KylinConfig.getKylinHome()).getAbsolutePath()).append("\n"); buf.append("kylin.version:").append(KylinVersion.getCurrentVersion()).append("\n"); buf.append("commit:").append(KylinVersion.getGitCommitInfo()).append("\n"); buf.append("os.name:").append(System.getProperty("os.name")).append("\n"); buf.append("os.arch:").append(System.getProperty("os.arch")).append("\n"); buf.append("os.version:").append(System.getProperty("os.version")).append("\n"); buf.append("java.version:").append(System.getProperty("java.version")).append("\n"); buf.append("java.vendor:").append(System.getProperty("java.vendor")); return buf.toString(); } }
public static String getKylinClientInformation() { StringBuilder buf = new StringBuilder(); buf.append("kylin.home: ").append( KylinConfig.getKylinHome() == null ? "UNKNOWN" : new File(KylinConfig.getKylinHome()).getAbsolutePath()) .append("\n"); buf.append("kylin.version:").append(KylinVersion.getCurrentVersion()).append("\n"); buf.append("commit:").append(getGitCommitInfo()).append("\n"); buf.append("os.name:").append(System.getProperty("os.name")).append("\n"); buf.append("os.arch:").append(System.getProperty("os.arch")).append("\n"); buf.append("os.version:").append(System.getProperty("os.version")).append("\n"); buf.append("java.version:").append(System.getProperty("java.version")).append("\n"); buf.append("java.vendor:").append(System.getProperty("java.vendor")); return buf.toString(); }
private static List<String> filterByGitCommit(Admin hbaseAdmin, List<String> tableNames) throws IOException { List<String> result = Lists.newLinkedList(); List<String> filteredList = Lists.newLinkedList(); String commitInfo = KylinVersion.getGitCommitInfo(); if (StringUtils.isEmpty(commitInfo)) { return tableNames; } logger.info("Commit Information: " + commitInfo); for (String tableName : tableNames) { HTableDescriptor tableDesc = hbaseAdmin.getTableDescriptor(TableName.valueOf(tableName)); String gitTag = tableDesc.getValue(IRealizationConstants.HTableGitTag); if (commitInfo.equals(gitTag)) { filteredList.add(tableName); } else { result.add(tableName); } } logger.info("Filtered tables don't need to deploy coprocessors: " + filteredList); return result; }
String commitInfo = KylinVersion.getGitCommitInfo(); if (!StringUtils.isEmpty(commitInfo)) { desc.setValue(IRealizationConstants.HTableGitTag, commitInfo);
hTableDesc.setValue(IRealizationConstants.HTableTag, kylinConfig.getMetadataUrlPrefix()); hTableDesc.setValue(IRealizationConstants.HTableCreationTime, String.valueOf(System.currentTimeMillis())); String commitInfo = KylinVersion.getGitCommitInfo(); if (!StringUtils.isEmpty(commitInfo)) { hTableDesc.setValue(IRealizationConstants.HTableGitTag, commitInfo);
String commitInfo = KylinVersion.getGitCommitInfo(); if (!StringUtils.isEmpty(commitInfo)) { tableDesc.setValue(IRealizationConstants.HTableGitTag, commitInfo);
public static String getKylinClientInformation() { StringBuilder buf = new StringBuilder(); buf.append("kylin.home: ").append( KylinConfig.getKylinHome() == null ? "UNKNOWN" : new File(KylinConfig.getKylinHome()).getAbsolutePath()) .append("\n"); buf.append("kylin.version:").append(KylinVersion.getCurrentVersion()).append("\n"); buf.append("commit:").append(getGitCommitInfo()).append("\n"); buf.append("os.name:").append(System.getProperty("os.name")).append("\n"); buf.append("os.arch:").append(System.getProperty("os.arch")).append("\n"); buf.append("os.version:").append(System.getProperty("os.version")).append("\n"); buf.append("java.version:").append(System.getProperty("java.version")).append("\n"); buf.append("java.vendor:").append(System.getProperty("java.vendor")); return buf.toString(); }
private static List<String> filterByGitCommit(Admin hbaseAdmin, List<String> tableNames) throws IOException { List<String> result = Lists.newLinkedList(); List<String> filteredList = Lists.newLinkedList(); String commitInfo = KylinVersion.getGitCommitInfo(); if (StringUtils.isEmpty(commitInfo)) { return tableNames; } logger.info("Commit Information: " + commitInfo); for (String tableName : tableNames) { HTableDescriptor tableDesc = hbaseAdmin.getTableDescriptor(TableName.valueOf(tableName)); String gitTag = tableDesc.getValue(IRealizationConstants.HTableGitTag); if (commitInfo.equals(gitTag)) { filteredList.add(tableName); } else { result.add(tableName); } } logger.info("Filtered tables don't need to deploy coprocessors: " + filteredList); return result; }
String commitInfo = KylinVersion.getGitCommitInfo(); if (!StringUtils.isEmpty(commitInfo)) { desc.setValue(IRealizationConstants.HTableGitTag, commitInfo);
hTableDesc.setValue(IRealizationConstants.HTableTag, kylinConfig.getMetadataUrlPrefix()); hTableDesc.setValue(IRealizationConstants.HTableCreationTime, String.valueOf(System.currentTimeMillis())); String commitInfo = KylinVersion.getGitCommitInfo(); if (!StringUtils.isEmpty(commitInfo)) { hTableDesc.setValue(IRealizationConstants.HTableGitTag, commitInfo);
String commitInfo = KylinVersion.getGitCommitInfo(); if (!StringUtils.isEmpty(commitInfo)) { tableDesc.setValue(IRealizationConstants.HTableGitTag, commitInfo);