tPaloOutputMulti
Takes the input stream and writes it to a given Palo cube.
The tPaloOutputMulti writes data (elements as well as
values) into a Palo cube.
tPaloOutputMulti Standard properties
These properties are used to configure tPaloOutputMulti running in the Standard Job framework.
The Standard
tPaloOutputMulti component belongs to the Business Intelligence family.
The component in this framework is available in all Talend
products.
Basic settings
Use an existing connection |
Select this check box and in the Component List click the relevant connection component to Note that when a Job contains the parent Job and the child Job, |
Host Name |
Enter the host name or the IP address of the host server. |
Server Port |
Type in the listening port number of the Palo server. |
Username and |
Enter the Palo user authentication data. To enter the password, click the […] button next to the |
Database |
Type in the name of the database where the cube of interest |
Cube |
Type in the name of the cube in which the incoming data is |
Cube type |
Select the cube type from the drop-down list for the cube of – Normal – Attribut – System – User Info |
Commit size |
Type in the row count of each batch to be written into the |
Schema and Edit |
A schema is a row description. It defines the number of fields Click Edit
|
 |
Built-in: The schema is created |
 |
Repository: The schema already |
Measure value |
Select the column from the input stream which holds the Measure or |
Splash mode |
Select the splash mode used to write data into a consolidated – Add: it writes values to the – Default: it uses the default – Set: it simply sets or – Disable: it applies no For further information about the Palo splash modes, see Palo’s |
Add values |
Select this check box to add new values to the current values for |
Use eventprocessor |
Select this check box to call the supervision server. |
Die on error |
This check box is cleared by default, meaning to skip the row on |
Advanced settings
tStat |
Select this check box to collect log data at the component |
Enable parallel execution |
Select this check box to perform high-speed data processing, by treating
multiple data flows simultaneously. Note that this feature depends on the database or the application ability to handle multiple inserts in parallel as well as the number of CPU affected. In the Number of parallel executions field, either:
|
Global Variables
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
This component requires an input component. |
Connections |
Outgoing links (from this component to another): Row: Main
Trigger: Run if; On Component Ok; Incoming links (from one component to this one): Row: Main; Reject For further information regarding connections, see |
Limitation |
Numeric measures are only be accepted as Double or String type. Due to license incompatibility, one or more JARs required to use |
Writing data into a given cube
The Job in this scenario writes new values in the Sales
cube given as demo in the Demo database installed with Palo.
To replicate this scenario, proceed as follows:
Setting up the Job
- Drop tFixedFlowInput and tPaloOutputMulti from the component Palette onto the design workspace.
-
Right-click tFixedFlowInput to open its
contextual menu. - In this menu, select Row > Main to connect this component to tPaloOutputMulti.
Configuring the input component
-
Double-click the tFixedFlowInput
component to open its Component
view. -
Click the three-dot button to open the schema editor.
-
In the schema editor, click the plus button to add 7 rows and rename them
respectively as Products, Regions, Months, Years, Datatypes,
Measures and Values. The order of these
rows must be consistent with that of the corresponding dimensions in the
Sales cube and the type of the
Value column where the measure value resides is set
to double/Double. -
Click OK to validate the editing and
accept the propagation prompted by the dialog box that pops up. Then the
schema column labels display automatically in the Value table under the Use single
table check box, in the Mode
area. -
In the Value table, type in values for
each row in the Value column. In this
example, these values are: Desktop L, Germany, Jan, 2009, Actual,
Turnover, 1234.56.
Configuring the output component
-
Double-click tPaloOutputMulti to open its
Component view. -
In the Server Port field, type in the
listening port number of the Palo server. In this scenario, it is
7777. -
In the Username field and the Password field, type in the authentication
information. In this example, both of them are
admin. -
In the Database field, type in the
database name in which you want to create the cube,
Demo in this example. -
In the Cube field, type in the name of
the cube you want to write data in, for example,
Sales. -
In the Cube type field, select the
Normal type from the drop-down list for
the cube to be created, meaning this cube will be normal and default. -
In the Measure Value field, select the
Measure element. In this scenario, select Value.
Job execution
Press F6 to run the Job.
The inflow data has been written into the Sales cube.
Rejecting inflow data when the elements to be written do not
exist in a given cube
The Job in this scenario tries to write data into the Sales cube but as the elements of interest do not exist in this cube, the inflow
data is rejected.
To replicate this scenario, proceed as follows:
Setting up the Job
- Drop tFixedFlowInput, tPaloCheckElements, tPaloOutputMulti and tLogRow from the component Palette onto the design workspace.
-
Right-click tFixedFlowInput to open its
contextual menu. - In this menu, select Row > Main to connect this component to tPaloCheckElements.
-
Do the same to connect tPaloOutputMulti
using row link. -
Right-click tPaloCheckElements to open
its contextual menu. - In this menu, select Row > Reject to connect this component to tLogRow.
Configuring the input component
-
Double-click the tFixedFlowInput
component to open its Component
view. -
Click the three-dot button to open the schema editor.
-
In the schema editor, click the plus button to add 7 rows and rename them
respectively as Products, Regions, Months, Years, Datatypes,
Measures and Values. The order of these
rows must be consistent with that of the corresponding dimensions in the
Sales cube and the type of the
Value column where the measure value resides is set
to double/Double. -
Click OK to validate the editing and
accept the propagation prompted by the dialog box that pops up. Then the
schema column labels display automatically in the Value table under the Use single
table check box, in the Mode
area. -
In the Value table, type in values for
each row in the Value column. In this
example, these values are: Smart Products, Germany, Jan, 2009,
Actual, Turnover, 1234.56. The Smart
Products element does not exist in the
Sales cube.
Configuring the tPaloCheckElements component
-
Double-click tPaloCheckElements to open
its Component view. -
In the Host name field, type in
localhost. -
In the Server Port field, type in the
listening port number of the Palo server. In this scenario, it is
7777. -
In the Username field and the Password field, type in the authentication
information. In this example, both of them are
admin. -
In the Database field, type in the
database name in which you want to create the cube,
Demo in this example. -
In the Cube field, type in the name of
the cube you want to write data in, for example,
Sales. -
In the On Element error field, select
Reject row from the drop-down
list. -
In the element table at the bottom of the Basic
settings view, click the Element
type column in the Value row and select
Measure from the drop down list.
Configuring the output component
-
Double-click tPaloOutputMulti to open its
Component view. -
In the Server Port field, type in the
listening port number of the Palo server. In this scenario, it is
7777. -
In the Username field and the Password field, type in the authentication
information. In this example, both of them are
admin. -
In the Database field, type in the
database name in which you want to create the cube,
Demo in this example. -
In the Cube field, type in the name of
the cube you want to write data in, for example,
Sales. -
In the Cube type field, select the
Normal type from the drop-down list for
the cube to be created, meaning this cube will be normal and default. -
In the Measure Value field, select the
Measure element. In this scenario, select Value.
Job execution
Press F6 to run the Job.
The data to be written is rejected and displayed in the console of the Run view. You can read that the error message is
Smart Products.