本文整理汇总了Java中org.apache.hadoop.hbase.util.VersionInfo.writeTo方法的典型用法代码示例。如果您正苦于以下问题:Java VersionInfo.writeTo方法的具体用法?Java VersionInfo.writeTo怎么用?Java VersionInfo.writeTo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.hbase.util.VersionInfo
的用法示例。
在下文中一共展示了VersionInfo.writeTo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: dumpVersionInfo
import org.apache.hadoop.hbase.util.VersionInfo; //导入方法依赖的package包/类
protected void dumpVersionInfo(PrintWriter out) {
VersionInfo.writeTo(out);
out.println("Hadoop " + org.apache.hadoop.util.VersionInfo.getVersion());
out.println("Source code repository " + org.apache.hadoop.util.VersionInfo.getUrl()
+ " revision=" + org.apache.hadoop.util.VersionInfo.getRevision());
out.println("Compiled by " + org.apache.hadoop.util.VersionInfo.getUser() +
" on " + org.apache.hadoop.util.VersionInfo.getDate());
}
示例2: dumpVersionInfo
import org.apache.hadoop.hbase.util.VersionInfo; //导入方法依赖的package包/类
protected void dumpVersionInfo(PrintWriter out) {
VersionInfo.writeTo(out);
out.println("Hadoop " + org.apache.hadoop.util.VersionInfo.getVersion());
out.println("Subversion " + org.apache.hadoop.util.VersionInfo.getUrl() + " -r " +
org.apache.hadoop.util.VersionInfo.getRevision());
out.println("Compiled by " + org.apache.hadoop.util.VersionInfo.getUser() +
" on " + org.apache.hadoop.util.VersionInfo.getDate());
}