ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pradeepchanumolu <pradeepb...@gmail.com>
Subject Re: IGFS Error when writing a file
Date Wed, 02 Aug 2017 17:29:22 GMT
Looks like the files did not get uploaded correctly. I am pasting the
contents of the files here.

*Ignite default-config.xml *: 
<beans
  xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:util="http://www.springframework.org/schema/util"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/util
       http://www.springframework.org/schema/util/spring-util.xsd">

  
  <description>
    Spring file for Ignite node configuration with IGFS and Apache Hadoop
map-reduce support enabled. Ignite node will start with this configuration
by default.
  </description>

  
  <bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="systemPropertiesModeName"
value="SYSTEM_PROPERTIES_MODE_FALLBACK"/>
    <property name="searchSystemEnvironment" value="true"/>
  </bean>

  
  <bean id="grid.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
    
    

    
    <property name="discoverySpi">
      <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
        <property name="ipFinder">
          <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.zk.TcpDiscoveryZookeeperIpFinder">
            <property name="zkConnectionString"
value="spark-master-host-ignite:2181"/>
          </bean>
        </property>
        
      </bean>
    </property>

    <property name="fileSystemConfiguration">
      <list>
        <bean
class="org.apache.ignite.configuration.FileSystemConfiguration">
          
          <property name="name" value="igfs"/>

          
          <property name="ipcEndpointConfiguration">
            <bean
class="org.apache.ignite.igfs.IgfsIpcEndpointConfiguration">
              <property name="type" value="TCP"/>
              <property name="host" value="0.0.0.0"/>
              <property name="port" value="10500"/>
            </bean>
          </property>

          

          <property name="secondaryFileSystem">
            <bean
class="org.apache.ignite.hadoop.fs.IgniteHadoopIgfsSecondaryFileSystem">
              <property name="fileSystemFactory">
                <bean
class="org.apache.ignite.hadoop.fs.CachingHadoopFileSystemFactory">
                  <property name="uri"
value="hdfs://hdfs-namenode-host-ignite:9000/"/>
                  <property name="configPaths">
                    <list>
                      <value>/opt/hadoop/etc/hadoop/core-site.xml</value>
                    </list>
                  </property>
                </bean>
              </property>
            </bean>
          </property>

          
          <property name="defaultMode" value="DUAL_SYNC"/>
          
          <property name="pathModes">
            <map>
              <entry key="/tmp/.*" value="PRIMARY"/>
            </map>
          </property>
          
        </bean>
      </list>
    </property>

  </bean>
</beans>


*HADOOP core-site.xml: *
<configuration>
<property>
  <name>hadoop.tmp.dir</name>
  <value>/opt/data/apps/tmp</value>
  <description>A base for other temporary directories.</description>
</property>

<property>
  <name>hadoop.name.dir</name>
  <value>/opt/data/apps/dfs/name</value>
</property>

<property>
  <name>hadoop.data.dir</name>
  <value>/opt/data/apps/dfs/data</value>
</property>

<property>
  <name>fs.default.name</name>
  <value>hdfs://hdfs-namenode-host-ignite:9000/</value>
</property>

<property>
  <name>JAVA_HOME</name>
  <value>${JAVA_HOME}</value>
</property>

<property>
  <name>fs.igfs.impl</name>
  <value>org.apache.ignite.hadoop.fs.v1.IgniteHadoopFileSystem</value>
</property>

<property>
  <name>fs.AbstractFileSystem.igfs.impl</name>
  <value>org.apache.ignite.hadoop.fs.v2.IgniteHadoopFileSystem</value>
</property>

</configuration>

*
Spark spark-env.sh*
IGNITE_HOME=/opt/ignite
IGNITE_LIBS="${IGNITE_HOME}/libs/*"
for file in ${IGNITE_HOME}/libs/*
do
    if [ -d ${file} ] && [ "${file}" != "${IGNITE_HOME}"/libs/optional ];
then
        IGNITE_LIBS=${IGNITE_LIBS}:${file}/*
    fi
done
export SPARK_CLASSPATH=$IGNITE_LIBS




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/IGFS-Error-when-writing-a-file-tp15868p15915.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message