pentaho

Running pan.bat from command line

耗尽温柔 提交于 2019-12-13 04:57:18
问题 I'm trying to run pan.bat through cmd from my windows os system,I have set the environment variable PENTAHO_JAVA_HOME,seeking help for the same , Thanking in advance. I tried this command to run the .ktr C:\pdi-ce-5.2.0.0-209\data-integration>pan.bat /file:E:\Practise_TRANSFORMATION OUTPUT\dynamic pivot\trying_pivot_with_2_billingid.ktr /level:Basic and this is the error I'm getting WARNING: Using java from path DEBUG: _PENTAHO_JAVA_HOME= DEBUG: _PENTAHO_JAVA=java.exe C:\pdi-ce-5.2.0.0-209

Run PDI jobs direct inside pentaho bi server 5.1 CE

时间秒杀一切 提交于 2019-12-13 04:07:49
问题 is it in principle possible to upload and run PDI jobs in bi server? I have tried it, but always get this error in the user console: Sorry. We really did try. Something went wrong. Please try again or contact your administrator. in conjunction with this log file error message: 2014/08/02 14:04:43 - RepositoriesMeta - Reading repositories XML file: FromInputStream 14:04:43,384 ERROR [GeneratorStreamingOutput] Error generating content from content generator with id [viewer] Could some give me a

Pentaho Data Integration setVariable not working

╄→尐↘猪︶ㄣ 提交于 2019-12-13 02:42:09
问题 I am on PDI 7.0 and have a "Modified Java Script Value" step inside a transformation as below: var numberOfDays = 100; Alert(numberOfDays); setVariable("NUMBER_OF_DAYS", numberOfDays, "r"); Alert(getVariable("NUMBER_OF_DAYS", "")); However, when I run the transformation, the first Alert correctly throws 100, but the next Alert is blank (meaning the variable is not set). What is wrong here? 回答1: As a rule of thumb , you should never set a variable and read it within the same transformation .

SET and Select Query combine Run in a Single MySql Query to pass result in pentaho

吃可爱长大的小学妹 提交于 2019-12-13 02:21:34
问题 Below 3 queries i want to run as single query in mysql and i will pass this result to Pentaho query component to plot some graph. SET @input = select "22:4,33:4" from dual; SET @count := 0; select SUBSTRING_INDEX(@input, ' ', (@count) * 2), ' ', -1) as xyz, som_cnt as count from abc; Sample string is of unknown length (22:4,33:4,96:6....) expected output xyz count ---------------- 22 4 33 4 96 6 reference - Mysql Query to Separate space delimited String Convert into 2 columns Set query count

Pivots using ETL Metadata Injection

眉间皱痕 提交于 2019-12-13 01:27:24
问题 It's quite simple to use row denormaliser to achieve pivots when we have few records which can be written manually in denorm step,but what when there's hundreds of thousands of records? I tried using etl metadata injection step, but I was unable to achieve my desired output. Here is the link to my previous post where my source data has been defined. and here is what I have tried row denormaliser options pivot_inject_etl_metadata.ktr 回答1: Try something like this: pivot_inject_etl_metadata.ktr

Pentaho Hadoop File Input

 ̄綄美尐妖づ 提交于 2019-12-13 01:24:46
问题 I'm trying to retrieve data from an standalone Hadoop (version 2.7.2 qith properties configured by default) HDFS using Pentaho Kettle (version 6.0.1.0-386 ). Pentaho and Hadoop are not in the same machine but I have acces from one to another. I created a new "Hadoop File Input" with the following properties: Environment File/Folder Wildcard Rquired Include subfolders url-to-file N N url-to-file is built like: ${PROTOCOL}://${USER}:${PASSWORD}@${IP}:${PORT}${PATH_TO_FILE} eg: hdfs://hadoop:

Kettle - Append XML files content

荒凉一梦 提交于 2019-12-12 23:58:46
问题 How can I append two (maybe more) XML files? I search for those files using the 'Get File Names'. If more than one file is found, how can I append their content, to result in just one XML file? Thanks 回答1: Check the "XML Join" step. Curiously named as its not really a join (altho when you think about it i guess it is) but should do what you want. 来源: https://stackoverflow.com/questions/19223203/kettle-append-xml-files-content

Merge Rows (diff) is comparing row by row, not one row to entire rows of other table

感情迁移 提交于 2019-12-12 20:07:02
问题 I am comparing two sheets using Merge Rows (diff). 1st excel sheet: 2nd excel sheet: and my pentaho transaction: in preview data showing, that id 2.0 at 2nd row is add new row and at 4 row its showing same data is delete, its suppose to identical, so how it can be achieve. 回答1: Merge rows (diff) requires both input streams to be sorted by the merge keys (there's a warning about it when you edit the step's properties). Put a sort rows step in each stream ahead of the Merge Rows (diff) step. 来源

Pentaho 5.3 - How to read a property in PRPT files

半城伤御伤魂 提交于 2019-12-12 06:37:32
问题 I need to set a value in a properties file and then read this value in a PRPT in Pentaho 5.3.If I understand it, the file where to add my property is design-tools/report-designer/resources/classic-engine.properties (Report Designer) and server/biserver-ee/tomcat/webapps/pentaho/WEB-INF/classes/classic-engine.properties (BI server, once published).That's right? If so, could you tell me how I can read this value (example, pentaho.images.path=c:/myProject/images/) in my PRPT file? If not, could

Make a DB INSERT based on Text File Input metadata

此生再无相见时 提交于 2019-12-12 04:54:28
问题 I'm developing an ETL and must do some routines for monitoring it. At the begining, I must make in INSERT on DB to create a record informing the filename and starting process datetime. This query will return the record's PK and it must be stored. When the ETL of that file finishes, I must update that record informing the ETL finished with success and its ending process datetime. I use Text File Input to look for files that match its regex, and add its "Additional output fields" to stream. But