Quantcast
Channel: Pentaho Community Forums
Viewing all 16689 articles
Browse latest View live

automatic Job

$
0
0
hello forum,

i have one question pls.

I was trying to start a kettle-job by a .bat file. The .bat file as follows:

kitchen.bat /rep:Kettle /job:PAs aelter als 2 Wochen /dir:/CMP - MyFactory/MyFactory/ /user:admin /pass:Passwort1

it is not possible to start the job automatically by click on the .bat file.

What is wrong ?

Code:

INFO  30-10 12:32:14,703 - Kitchen - Logging is at level : Debugging
INFO  30-10 12:32:14,718 - Kitchen - Repository and username supplied
INFO  30-10 12:32:14,718 - Kitchen - Start of run.
DEBUG 30-10 12:32:14,718 - Kitchen - Allocate new job.
DEBUG 30-10 12:32:14,765 - Kitchen - Parsing command line options.
DEBUG 30-10 12:32:14,765 - Kitchen - Loading available repositories.
INFO  30-10 12:32:14,765 - RepositoriesMeta - Reading repositories XML file: C:\
Users\Admin\.kettle\repositories.xml
DEBUG 30-10 12:32:14,890 - Kitchen - Finding repository [Kettle]
ERROR: No repository provided, can't load job.
ERROR: Kitchen can't continue because the job couldn't be loaded.


Problem with foreign characters and FTP get

$
0
0
Good morning,

I have a problem when I try to download a file named "Planta Localização.pdf" with the FTP step in Kettle 4.2 (and 5.1 too). The result is "Planta Localização.pdf".

If I use my usual Filezilla FTP client the name is preserved correctly.

Do you know if I can fix this? Maybe forcing some configuration in the FTP server? (filezilla server, FTP with explicit SSL encryption mode). Changing something in my Kettle configuration?



Thanks a lot! :)

Text output giving extra row after each line record

$
0
0
Hi All,

An extra line is coming after each line record in plain text output.I don't know what i need to do to disable this behavior.Please help!!

I have attached sample text output file.


AnupAttachment 14133
Attached Files

Running report designer from within BI server

$
0
0
I'm running the BI server 5.2 and from using http://localhost:8080/pentaho/Home

I have seen screenshots where they show creating reports from within BI server.

I downloaded the report designer and I can run it outside of the BI server. How can I run run the report designer from within the BI server?

Mailing the result of a transformation

$
0
0
Need suggestion for below:
1) Transformation will write the result set of a select sql into a Excel file
2) job will get the result file and mail it to the user

Workbench Cube Table doesn't show column after table update

$
0
0
Hi all.

I created a cube in Mondrian and it is working. Then I included one column to my table and deleted and added again the table in the cube level in Workbench, but even though this column doesn't appear to me.

What should I do when I need to change my table structure without losing what I have already done? I already have lots of dimensions linked to my cube and I don't want to have this work all over again.

Thanks in advance!

Embeded BI

$
0
0
Hello All,

I have developed dashboard,analyzer and interactive reports in pentaho.
Now I want to access it from a simple HTML page using IFRAME.
I have tried it, first it ask for login and as soon as I submit username and password, it give me
Error: Permission denied to access property 'mantle_initialized'.
Please can anybody help me regarding this.

Thanks & Regards
Gaurav Ashara

render troubles

$
0
0
Hello,
I made a report which is working perfectly but I have some troubles with its rendering.
It is different for "html" and "pdf" version. There are missing some lines in "html" version but I do not know where the problem can be.
It is even worse if there are some data.

I posted an attachment with my report.
Report_Dokumentace_Vrtu_test.prpt

Thank you :)
Attached Files

user defined java class with 2 info steps

$
0
0
I create a UDJC with 2 info steps, but when I try to access the data fails.
Previously I had a single info step and working properly.

Code:

if (first){
        first = false;

        //Primero se recorre la tabla ir_model_data y se crea un mapa<xml_id, bd_id>
        Map model_ids = new HashMap();
        RowSet infoStream = findInfoRowSet("model_info");
        Object[] infoRow = null;
 
        int infoRowCount = 0;

        while((infoRow = getRowFrom(infoStream)) != null){
            // do something with info data
            String res_id = get(Fields.Info, "res_id").getString(infoRow);
            String xml_id = get(Fields.Info, "name").getString(infoRow);
            model_ids.put(res_id, xml_id);
            infoRowCount++;
        }



        //Se guardan los ids de la bd en un hashmap<xml_id, bd_id>
        prod_ids = new HashMap();
        prod_names = new HashMap();
        RowSet infoStreamProd = findInfoRowSet("info_prod");
        Object[] infoRowProd = null;
 
        int infoRowCountProd = 0;

        // Read all rows from info step before calling getRow() method, which returns first row from any
        // input rowset. As rowMeta for info and input steps varies getRow() can lead to errors.
        while((infoRowProd = getRowFrom(infoStreamProd)) != null){
            // do something with info data
            String xml = String.valueOf(model_ids.get(get(Fields.Info, "id").getString(infoRowProd)));
            prod_names.put(xml, get(Fields.Info, "name").getString(infoRowProd));
            prod_ids.put(xml, get(Fields.Info, "id").getString(infoRowProd));
            infoRowCountProd++;
        }
    }

the error:
Quote:

2014/10/30 19:28:58 - Convert to odoo.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : Error desconocido
2014/10/30 19:28:58 - Convert to odoo.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : org.pentaho.di.core.exception.KettleStepException:
2014/10/30 19:28:58 - Convert to odoo.0 - Unable to find Info field helper for field name 'res_id'
2014/10/30 19:28:58 - Convert to odoo.0 -
2014/10/30 19:28:58 - Convert to odoo.0 - at org.pentaho.di.trans.steps.userdefinedjavaclass.TransformClassBase.get(TransformClassBase.java:653)
2014/10/30 19:28:58 - Convert to odoo.0 - at Processor.processRow(Processor.java:19)
2014/10/30 19:28:58 - Convert to odoo.0 - at org.pentaho.di.trans.steps.userdefinedjavaclass.UserDefinedJavaClass.processRow(UserDefinedJavaClass.java:1018)
2014/10/30 19:28:58 - Convert to odoo.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2014/10/30 19:28:58 - Convert to odoo.0 - at java.lang.Thread.run(Thread.java:745)
pd: The field res_id exists in the info step named model_info.

info_steps.png
Attached Images

url userid password

$
0
0
I have a security problem. How to pass parameters in the url in a hidden way? I am wanting to spend already authenticated parameters of a system.

Working:
http://localhost:8080/pentaho/Home?u...sword=PASSWORD

But the parameters are visible: USER PASSWORD

Anyone ever had this problem? Know any way to solve?

Parellelly write data to single file from different transformations

$
0
0
I have to create a single common text file, where the rows are pushed from different transformations parallelly.

How can we implement this.

Issue using TopCount with two different Hierarchy Levels (MDX)

$
0
0
Hi all,

I'm facing a strange behavior when I try to use the TopCount function to get the TOP 10 Selling Products - Brand Name.
When I run TopCount for the Product Name level it's Ok, but if I add the Brand Name it cuts some of the Products...

Let me show an example :

Considering my hierarchy "Manufacturer" for dimension "Product" :
-Manufacturer
----Brand
-------Sub-Brand
-----------Product Name

When I run the query below, with only the product name level, It displays the top 10 products correctly.:

Code:

SELECT
NON EMPTY {[Measures].[Quantity]} ON COLUMNS,
NON EMPTY TopCount([DIM Product.Manufacturer].[Product Name].Members,10,[Measures].[Quantity]) ON ROWS
FROM [Sales]

product_name.PNG


But if I add the Brand to the TopCount Function, it shows only 3 Brand + Product :

Code:

SELECT
NON EMPTY {[Measures].[Quantity]} ON COLUMNS,
NON EMPTY TopCount(Hierarchize({{[DIM Product.Manufacturer].[Brand].Members},{[DIM Product.Manufacturer].[Product Name].Members}}),10,[Measures].[Quantity]) ON ROWS
FROM [Sales]

brand+product_name.PNG

What I am doing wrong?

Thanks in advance.
Attached Images

BA 5.2 - building issue: missing dependencies

$
0
0
Hi,
I'm trying to build the BA from source, as always did with previous versions.

I have checkout the git repository at 5.2.0.0-R tag. Project revision build property is set at 5.2.0.0-209, the same of the sourceforge distribution.

However, when giving from command line, at project root, the usual
Code:

ant -f dev_build.xml dev-rebuild
, after some successful dependency resolution, ivy starts complaining about missing jars. For instance:

[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: pentaho#pentaho-connections;5.2.0.0-209: not found
[ivy:resolve] :: pentaho#pentaho-actionsequence-dom;5.2.0.0-209: not found
[ivy:resolve] :: pentaho#pentaho-xul-core;5.2.0.0-209: not found
[ivy:resolve] :: pentaho#pentaho-database-model;5.2.0.0-209: not found
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::


Actually, the artifact repository at repo.pentaho.org does not contain these files. Is this kind of bug or am I missing something?
Thanks in advance

Edit: I filled in a jira.

Values for first date

$
0
0
I have a cube width a dimension of type TimeDimension:

<Dimension type="TimeDimension" visible="true" highCardinality="false" name="Fecha" caption="Fecha">

<Hierarchy name="Weeks" visible="true" hasAll="true" primaryKey="id" caption="Semanas" description="Jerarquia con Semanas">
<Table name="dim_day">
</Table>
<Level approxRowCount="52" name="Year" visible="true" column="year4" type="String" uniqueMembers="true" levelType="TimeYears" hideMemberIf="Never" caption="A&#241;o">
</Level>
<Level name="Week" visible="true" column="week_in_year" type="String" uniqueMembers="false" levelType="TimeWeeks" hideMemberIf="Never" caption="Semana">
</Level>
<Level name="Day" visible="true" column="day_in_month" type="Integer" uniqueMembers="false" levelType="TimeDays" hideMemberIf="Never" caption="dia">
</Level>
</Hierarchy>

</Dimension>


and several measures.

Is it possible to create a new measure that contains the sum of a value that includes only those values that match the earlier date?

servlet+hyperlink not rendered - kind of urgent - i need to choose a report tool

$
0
0
hi, if i export the report to html hyperlinks are rendered and they work.

however, i need to generate report from within a servlet with dynamic parameters. in this case hyperlinks are not rendered, they are just text.

my code is below. is there anything i can change to get hyperlinks work? thanks.

ResourceManager manager = new ResourceManager();
manager.registerDefaults();

try
{
Resource res = manager.createDirectly(reportUrl, MasterReport.class);
MasterReport report = (MasterReport) res.getResource();

String city = request.getParameter("city");

report.getParameterValues().put ("_city", city);
HtmlReportUtil.createStreamHTML(report, response.getOutputStream());

}
catch (Exception e)
{
e.printStackTrace();
}

Problem with multiple execution of datasets by running reporting output step

$
0
0
Hi.

I face the following issue in pdi 5.2 (and below). When I run a report (with several subreports and PDI transformations as data set) over the pdi reporting output step, the transformations are being executed several times.
The report itself runs perfectly fine and fast in the report designer itself but once I execute it via pdi those data sets are being executed more than once.
I don't see any issue with the report itself nor can i explain why datasets are being execute n times. There seems to be no correlation to the amount of parameters or the result set.
Could someone please advise.
Thank you!

Step Dynamic SQL Row fails when input sql returns null values

$
0
0
My transformation fails when executing 'Step Dynamic SQL Row' because I have some nullable fields.
When I execute the step,
it fails because it interprets the 'null' value as String as this field does not match template type:
'The data type of template SQL result field 'data String' does not match with the input SQL field 'to_date Date''

I have created a bug on JIRA but is was not considered a bug: http://jira.pentaho.com/browse/PDI-13134
I attached the example transformation on the issue.

Did someone already deal this problem?

Br,
Orair.

Converting date string to timestamp datatype - Vertica bulk loader

$
0
0
Hi,

I am trying use the Vertica bulk loader to load timestamps but it does not accept a string as input if the target on Vertica is defined as 'timestamp'.

The date string I have is 'yyyy-MM-dd hh:mm:ss' and I need to convert to a timestamp data type. I have tried several google'd solution but can't seem to get them to work.

Can anyone help?

Thanks,

How to handle the format of number type filed in the MDX dimension?

$
0
0
I work with oracle.
There is a filed whose type is number
I wrote the dimension like this:

<Dimension name="Procuct">
<Hierarchy hasAll="true">
<Level name="ProcuctId" column="Product_id" type="Numeric"/>
<Level name="Procuct" column="Product_id" nameColumn="Product_name" type="Numeric"/>
</Hierarchy>
</Dimension>

but I found the result is strange.
I think the issue is the numeric id (length 17) has been converted to String with the wrong format, like: 1.0100000000000022E16
I tried formatString="#,###", but still not work.

Attribute Evaluation Exception

$
0
0
This is the dataset I've been working on -> http://www.mediafire.com/view/7srbin..._10_2_2_1.arff

Firstly, delete the second and thir columns (green and blue) after opening it on Weka.

Then, go to the attribute selection tab,
Use the ClassifierSubsetEval with RandomForest (random parameters).

For the search method use LinearFowardSelection or BestFirst with startingSet="1-8".

I always get the exception->
java.lang.Exception: No feature selection has been performed yet!

Anyone
Viewing all 16689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>