cascading.util.Util.findContainingJar()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中cascading.util.Util.findContainingJar()方法的一些代码示例,展示了Util.findContainingJar()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.findContainingJar()方法的具体详情如下:
包路径:cascading.util.Util
类名称:Util
方法名:findContainingJar

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" );
 }

相关文章