Pages: [1]
  Print  
Author Topic: different file names  (Read 172 times)
chris124
Newbie
*
Posts: 1


« on: March 03, 2014, 02:23:51 PM »

Hi RM-community,

I use RapidMiner in version 5.3 on Ubuntu and Windows systems.
On Windows 8.1 system all files are properly named and provided.
Nevertheless, on the Ubuntu system the file name of the log file is wrong named.
The file names are generated with the help of macros.

The result:
files on Ubuntufiles on Windows
1_salesData.csv1_salesData.csv
number_salesData.log1_salesData.log

Afterwards the source code follows for the RapidMiner files.
Merely the path data are different.

Linux-Code:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.015">
  <context>
    <input/>
    <output/>
    <macros>
      <macro>
        <key>number</key>
        <value>1</value>
      </macro>
    </macros>
  </context>
  <operator activated="true" class="process" compatibility="5.3.015" expanded="true" name="Process">
    <parameter key="logfile" value="/logs_prod/%{number}_%{process_name}.log"/>
    <process expanded="true">
      <operator activated="true" class="generate_sales_data" compatibility="5.3.015" expanded="true" height="60" name="Generate Sales Data" width="90" x="45" y="30"/>
      <operator activated="true" class="write_csv" compatibility="5.3.015" expanded="true" height="76" name="Write CSV" width="90" x="179" y="30">
        <parameter key="csv_file" value="/logs_prod/%{number}_salesData.csv"/>
      </operator>
      <connect from_op="Generate Sales Data" from_port="output" to_op="Write CSV" to_port="input"/>
      <connect from_op="Write CSV" from_port="through" to_port="result 1"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="0"/>
    </process>
  </operator>
</process>

Windows-Code:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.015">
  <context>
    <input/>
    <output/>
    <macros>
      <macro>
        <key>number</key>
        <value>1</value>
      </macro>
    </macros>
  </context>
  <operator activated="true" class="process" compatibility="5.3.015" expanded="true" name="Process">
    <parameter key="logfile" value="C:\logs_prod\%{number}_%{process_name}.log"/>
    <process expanded="true">
      <operator activated="true" class="generate_sales_data" compatibility="5.3.015" expanded="true" height="60" name="Generate Sales Data" width="90" x="45" y="30"/>
      <operator activated="true" class="write_csv" compatibility="5.3.015" expanded="true" height="76" name="Write CSV" width="90" x="179" y="30">
        <parameter key="csv_file" value="C:\logs_prod\%{number}_salesData.csv"/>
      </operator>
      <connect from_op="Generate Sales Data" from_port="output" to_op="Write CSV" to_port="input"/>
      <connect from_op="Write CSV" from_port="through" to_port="result 1"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="0"/>
    </process>
  </operator>
</process>

Why the file names are not named the same?

Thank you for reading it and trying to help me.
Logged
Pages: [1]
  Print  
 
Jump to: