The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

different file names

christianeggertchristianeggert Member Posts: 1 Learner III
edited November 2018 in Help
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:

<?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:

<?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.
Sign In or Register to comment.