Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

XD-2505 Changing job config to avoid file system close calls for … #1805

Merged
merged 1 commit into from
Oct 14, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/job/filepollhdfs/config/filepollhdfs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@

<bean id="hadoopFs" class="org.springframework.data.hadoop.fs.FileSystemFactoryBean">
<property name="configuration" ref="hadoopConfiguration"/>
<property name="close" value="false"/>
</bean>

<context:property-placeholder location="${xd.config.home}/hadoop.properties"/>
Expand Down
8 changes: 7 additions & 1 deletion modules/job/ftphdfs/config/ftphdfs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@

<context:property-placeholder location="${xd.config.home}/hadoop.properties"/>

<bean id="hadoopFs" class="org.springframework.data.hadoop.fs.FileSystemFactoryBean">
<property name="configuration" ref="hadoopConfiguration"/>
<property name="close" value="false"/>
</bean>

<hdp:configuration
register-url-handler="false"
properties-location="${xd.config.home}/hadoop.properties"
Expand All @@ -65,6 +70,7 @@
rm-manager-principal="${spring.hadoop.security.rmManagerPrincipal:}">
fs.defaultFS=${fsUri}
</hdp:configuration>
<hdp:resource-loader id="hadoopResourceLoader"/>

<hdp:resource-loader id="hadoopResourceLoader" file-system-ref="hadoopFs"/>

</beans>
4 changes: 3 additions & 1 deletion modules/job/hdfsjdbc/config/hdfsjdbc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@

<bean id="hadoopFs" class="org.springframework.data.hadoop.fs.FileSystemFactoryBean">
<property name="configuration" ref="hadoopConfiguration"/>
<property name="close" value="false"/>
</bean>

<context:property-placeholder location="${xd.config.home}/hadoop.properties"/>
Expand All @@ -109,7 +110,8 @@
rm-manager-principal="${spring.hadoop.security.rmManagerPrincipal:}">
fs.defaultFS=${fsUri}
</hdp:configuration>
<hdp:resource-loader id="hadoopResourceLoader"/>

<hdp:resource-loader id="hadoopResourceLoader" file-system-ref="hadoopFs"/>

<bean id="defaultResourceLoader" class="org.springframework.data.hadoop.fs.CustomResourceLoaderRegistrar">
<property name="loader" ref="hadoopResourceLoader"/>
Expand Down
5 changes: 4 additions & 1 deletion modules/job/hdfsmongodb/config/hdfsmongodb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

<bean id="hadoopFs" class="org.springframework.data.hadoop.fs.FileSystemFactoryBean">
<property name="configuration" ref="hadoopConfiguration"/>
<property name="close" value="false"/>
</bean>

<context:property-placeholder location="${xd.config.home}/hadoop.properties"/>
Expand All @@ -66,7 +67,9 @@
rm-manager-principal="${spring.hadoop.security.rmManagerPrincipal:}">
fs.defaultFS=${fsUri}
</hdp:configuration>
<hdp:resource-loader id="hadoopResourceLoader"/>

<hdp:resource-loader id="hadoopResourceLoader" file-system-ref="hadoopFs"/>

<mongo:db-factory dbname="${databaseName}" host="${host}" port="${port}"
username="${username}" password="${password}"
authentication-dbname="${authenticationDatabaseName}"
Expand Down
3 changes: 2 additions & 1 deletion modules/job/jdbchdfs/config/jdbchdfs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@

<bean id="hadoopFs" class="org.springframework.data.hadoop.fs.FileSystemFactoryBean">
<property name="configuration" ref="hadoopConfiguration"/>
<property name="close" value="false"/>
</bean>

<context:property-placeholder location="${xd.config.home}/hadoop.properties"/>
Expand All @@ -123,6 +124,6 @@
fs.defaultFS=${fsUri}
</hdp:configuration>

<hdp:resource-loader id="hadoopResourceLoader"/>
<hdp:resource-loader id="hadoopResourceLoader" file-system-ref="hadoopFs"/>

</beans>