本文整理了Java中cascading.util.Util.findContainingJar()
方法的一些代码示例,展示了Util.findContainingJar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.findContainingJar()
方法的具体详情如下:
包路径:cascading.util.Util
类名称:Util
方法名:findContainingJar
暂无
代码示例来源:origin: cwensel/cascading
@Override
public void initialize( FlowConnector flowConnector, Map<Object, Object> properties )
{
super.initialize( flowConnector, properties );
defaultConfiguration = TezUtil.createTezConf( properties, createConfiguration( properties ) );
intermediateSchemeClass = flowConnector.getIntermediateSchemeClass( properties );
String applicationJarPath = AppProps.getApplicationJarPath( properties );
if( applicationJarPath == null )
{
Class type = AppProps.getApplicationJarClass( properties );
if( type == null )
type = HadoopUtil.findMainClass( Hadoop2TezPlanner.class );
if( type != null )
applicationJarPath = Util.findContainingJar( type );
AppProps.setApplicationJarPath( properties, applicationJarPath );
}
if( applicationJarPath != null )
LOG.info( "using application jar: {}", applicationJarPath );
else
LOG.info( "using application jar not provided, see cascading.property.AppProps for more information" );
}
代码示例来源:origin: cascading/cascading-hadoop2-tez
@Override
public void initialize( FlowConnector flowConnector, Map<Object, Object> properties )
{
super.initialize( flowConnector, properties );
defaultConfiguration = TezUtil.createTezConf( properties, createConfiguration( properties ) );
intermediateSchemeClass = flowConnector.getIntermediateSchemeClass( properties );
String applicationJarPath = AppProps.getApplicationJarPath( properties );
if( applicationJarPath == null )
{
Class type = AppProps.getApplicationJarClass( properties );
if( type == null )
type = HadoopUtil.findMainClass( Hadoop2TezPlanner.class );
if( type != null )
applicationJarPath = Util.findContainingJar( type );
AppProps.setApplicationJarPath( properties, applicationJarPath );
}
if( applicationJarPath != null )
LOG.info( "using application jar: {}", applicationJarPath );
else
LOG.info( "using application jar not provided, see cascading.property.AppProps for more information" );
}
内容来源于网络,如有侵权,请联系作者删除!