different file names
christianeggert
New Altair Community Member
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:
Afterwards the source code follows for the RapidMiner files.
Merely the path data are different.
Linux-Code:
Thank you for reading it and trying to help me.
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 Ubuntu | files on Windows |
1_salesData.csv | 1_salesData.csv |
number_salesData.log | 1_salesData.log |
Merely the path data are different.
Linux-Code:
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="/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>
Why the file names are not named the same?
<?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>
Thank you for reading it and trying to help me.
Tagged:
0