OSGI-INF.blueprint.fabric-hadoop.xml Maven / Gradle / Ivy
The newest version!
<!--
Copyright (C) FuseSource, Inc.
http://fusesource.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0">
<command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
<command name="hadoop/namenode-format">
<action class="org.fusesource.fabric.hadoop.commands.NameNodeFormat"/>
</command>
</command-bundle>
<!-- dfs -->
<service auto-export="interfaces">
<service-properties>
<entry key="osgi.command.function" value="dfs"/>
<entry key="osgi.command.scope" value="hadoop"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.commands.HadoopCommand">
<property name="tool" value="org.apache.hadoop.fs.FsShell"/>
</bean>
</service>
<!-- dfsadmin -->
<service auto-export="interfaces">
<service-properties>
<entry key="osgi.command.function" value="dfsadmin"/>
<entry key="osgi.command.scope" value="hadoop"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.commands.HadoopCommand">
<property name="tool" value="org.apache.hadoop.hdfs.tools.DFSAdmin"/>
</bean>
</service>
<!-- mradmin -->
<service auto-export="interfaces">
<service-properties>
<entry key="osgi.command.function" value="mradmin"/>
<entry key="osgi.command.scope" value="hadoop"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.commands.HadoopCommand">
<property name="tool" value="org.apache.hadoop.mapred.tools.MRAdmin"/>
</bean>
</service>
<!-- fsck -->
<service auto-export="interfaces">
<service-properties>
<entry key="osgi.command.function" value="fsck"/>
<entry key="osgi.command.scope" value="hadoop"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.commands.HadoopCommand">
<property name="tool" value="org.apache.hadoop.hdfs.tools.DFSck"/>
</bean>
</service>
<!-- balancer -->
<service auto-export="interfaces">
<service-properties>
<entry key="osgi.command.function" value="balancer"/>
<entry key="osgi.command.scope" value="hadoop"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.commands.HadoopCommand">
<property name="tool" value="org.apache.hadoop.hdfs.server.balancer.Balancer"/>
</bean>
</service>
<!-- job -->
<service auto-export="interfaces">
<service-properties>
<entry key="osgi.command.function" value="job"/>
<entry key="osgi.command.scope" value="hadoop"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.commands.HadoopCommand">
<property name="tool" value="org.apache.hadoop.mapred.JobClient"/>
</bean>
</service>
<!-- queue -->
<service auto-export="interfaces">
<service-properties>
<entry key="osgi.command.function" value="queue"/>
<entry key="osgi.command.scope" value="hadoop"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.commands.HadoopCommand">
<property name="tool" value="org.apache.hadoop.mapred.JobQueueClient"/>
</bean>
</service>
<!-- pipes -->
<service auto-export="interfaces">
<service-properties>
<entry key="osgi.command.function" value="pipes"/>
<entry key="osgi.command.scope" value="hadoop"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.commands.HadoopCommand">
<property name="tool" value="org.apache.hadoop.mapred.pipes.Submitter"/>
</bean>
</service>
<!-- distcp -->
<service auto-export="interfaces">
<service-properties>
<entry key="osgi.command.function" value="distcp"/>
<entry key="osgi.command.scope" value="hadoop"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.commands.HadoopCommand">
<property name="tool" value="org.apache.hadoop.tools.DistCp"/>
</bean>
</service>
<!-- archive -->
<service auto-export="interfaces">
<service-properties>
<entry key="osgi.command.function" value="archive"/>
<entry key="osgi.command.scope" value="hadoop"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.commands.HadoopCommand">
<property name="tool" value="org.apache.hadoop.tools.HadoopArchives"/>
</bean>
</service>
<bean id="nameNodeFactory" class="org.fusesource.fabric.hadoop.hdfs.NameNodeFactory" destroy-method="delete">
<property name="bundleContext" ref="blueprintBundleContext"/>
</bean>
<bean id="dataNodeFactory" class="org.fusesource.fabric.hadoop.hdfs.DataNodeFactory" destroy-method="delete">
<property name="bundleContext" ref="blueprintBundleContext"/>
</bean>
<bean id="secondaryNameNodeFactory" class="org.fusesource.fabric.hadoop.hdfs.SecondaryNameNodeFactory" destroy-method="delete">
<property name="bundleContext" ref="blueprintBundleContext"/>
</bean>
<bean id="jobTrackerFactory" class="org.fusesource.fabric.hadoop.mapred.JobTrackerFactory" destroy-method="delete">
<property name="bundleContext" ref="blueprintBundleContext"/>
</bean>
<bean id="taskTrackerFactory" class="org.fusesource.fabric.hadoop.mapred.TaskTrackerFactory" destroy-method="delete">
<property name="bundleContext" ref="blueprintBundleContext"/>
</bean>
<bean id="hadoopFactory" class="org.fusesource.fabric.hadoop.HadoopFactory" destroy-method="destroy">
<property name="nameNodeFactory" ref="nameNodeFactory"/>
<property name="dataNodeFactory" ref="dataNodeFactory"/>
<property name="secondaryNameNodeFactory" ref="secondaryNameNodeFactory"/>
<property name="jobTrackerFactory" ref="jobTrackerFactory"/>
<property name="taskTrackerFactory" ref="taskTrackerFactory"/>
</bean>
<service ref="hadoopFactory" interface="org.osgi.service.cm.ManagedService">
<service-properties>
<entry key="service.pid" value="org.fusesource.fabric.hadoop"/>
</service-properties>
</service>
<service auto-export="interfaces">
<service-properties>
<entry key="service.pid" value="org.fusesource.fabric.hadoop"/>
<entry key="url.handler.protocol" value="hdfs"/>
</service-properties>
<bean class="org.fusesource.fabric.hadoop.hdfs.HdfsUrlHandler" />
</service>
</blueprint> © 2015 - 2025 Weber Informatics LLC | Privacy Policy