Posts

Create MongoDB service in Windows OS

1) Open Command Prompt 2) Create directory for Database and Logs                    mkdir c:\data\db                     mkdir c:\data\log 3) Create a file at C:\mongodb\mongod.cfg and  specifies both systemLog Path and Storage database       path   Add following in mongod.cfg file : systemLog : destination : file path : c:\data\log\mongod.log storage : dbPath : c:\data\db 4) Create service named as "MongoDB" using following command sc.exe create MongoDB binPath= "C:\mongodb\bin\mongod.exe --service --config=\"C:\mongodb\mongod.cfg\"" DisplayName= "MongoDB" start= "auto" 5) To remove MongoDB service use following command sc . exe delete MongoDB  

utf8_general_ci VS utf8_unicode_ci what should we use?

These two collations are both for the UTF-8 character encoding. The differences are in how text is sorted and compared. Note: in new versions of MySQL use utf8mb4 , rather than utf8 , which is the same UTF-8 data format with same performance but previously only accepted the first 65,536 Unicode characters. Accuracy utf8mb4_unicode_ci is based on the Unicode standard for sorting and comparison, which sorts accurately in a very wide range of languages. utf8mb4_general_ci fails to implement all of the Unicode sorting rules, which will result in undesirable sorting in some situations, such as when using particular languages or characters. Performance utf8mb4_general_ci is faster at comparisons and sorting, because it takes a bunch of performance-related shortcuts. On modern servers, this performance boost will be all but negligible. It was devised in a time when servers had a tiny fraction of the CPU performance of today's computers. utf8mb4_unicode_c...

How to show records in same order where IDs are put into the IN() clause?

    How to show records in same order where IDs are put into the IN() clause?     1) SELECT id FROM table1 WHERE ... ORDER BY display_order , name 2) SELECT name , description , ... WHERE id IN ([ id ' s from first ])   The issue is that the second query does not return the results in the same order  that the IDs are put into the IN() clause.    Solution :-  SELECT name , description , ... FROM ... WHERE id IN ([ ids , any order ]) ORDER BY FIELD ( id , [ ids in order ])

Is a BLOB converted using the current/default charset in MySQL?

Blob data used MySQL charset which is in my.ini default-character-set=latin1 Suppose I have a table with a BLOB field. The charset of the table is UTF-8. I connect to the DB and "SET CHARACTER SET utf8". Then I save binary data into the field. Then I retrieve the data, and it's not what I saved (corrupt). Because while retrieving data blob data used mysql default charset set. Ref : http://stackoverflow.com/questions/14734812/is-a-blob-converted-using-the-current-default-charset-in-mysql

Pentaho/R Integration Plugin

Image
http://dekarlab.de/wp/?p=5 Pentaho R Integration Plugin is used to execute R code direct from Pentaho Data Integration (PDI). R Script Plugin can be downloaded here:  Downloads Installation R script plugin can be installed by performing the following steps: 1) Copy the plugin folder (RScriptPlugin) into the folder of your PDI installation: data-integration\plugins\steps 2) Install R project from the site http://www.r-project.org/ 3) Install rJava package in R by executing: install.packages(“rJava”) 4) Copy JRI library rJava/jri/jri.dll (windows) or rJava/jri/libjri.so (linux) to: data-integration/libswt/{your operation system} 5) Specify location of R using R_HOME environment variable. (like: C:\R\R-3.0.2). 6) For windows, it is also needed to put in PATH variable the path to R.dll, for example: C:\R\R-3.0.2\bin\{your operation system} 7) The plugin can be found under Sripting Folder in Design Tab: Note: to check the installation press Hel...

Debunking GROUP BY myths

http://rpbouman.blogspot.co.uk/2007/05/debunking-group-by-myths.html

Maintain the Pentaho BA 5.0 Server Manually

https://help.pentaho.com/Documentation/5.2/0P0/000/050 http://infocenter.pentaho.com/help/index.jsp?topic=%2Fadmin_guide%2Ftask_config_baserver_manually.html \biserver-ce\tomcat\webapps\pentaho\mantle\home\content\welcome\index.html comment line no 27 to 37 for unvisible Learn, Contribute, Meet the Family \biserver-ce\tomcat\webapps\pentaho\mantle\home\content\welcome\img add your logo in above path and add image path in line no 27     <div class="header-navigation">         <img src="img/company_logo.png">     </div>        \biserver-ce\tomcat\webapps\pentaho\jsp\PUCLogin.jsp

Create your own app for the Pentaho BI/BA Server

http://diethardsteiner.blogspot.in/2014/02/sparkl-create-your-own-app-for-pentaho.html

error in pentaho 5.0.1 - authentication via url parameters for iframe

After passing userid and password in URL and page load it ask for user and password, seems pentaho server does not recognize the parameters. check here for the workaround (it's on the comments):  http://jira.pentaho.com/browse/BISERVER-10708 Workaround is to edit the system/applicationContext-spring-security.xml file and change the parameters for the filterChainProxy. Lines 22 and 23 should be replaced by:         /api/**=securityContextHolderAwareRequestFilterForWS,httpSessionPentahoSessionContextIntegrationFilter,httpSessionContextIntegrationFilter,requestParameterProcessingFilter,basicProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilterForWS,filterInvocationInterceptorForWS         /plugin/**=securityContextHolderAwareRequestFilterForWS,httpSessionPentahoSessionContextIntegrationFilter,httpSessionContextIntegrationFilter,requestParameterProcessingFilter,basicProcessingFilter,a...

Performance tuning settings for Pentaho Reporting

https://www.on-reporting.com/blog/performance-tuning-settings-for-pentaho/

remember if Alfresco Audit Analysis and Reporting plugin installed

Installed Alfresco Audit Analysis and Reporting with branch Limited This plugin requires CDA and CDE installed in the Pentaho BIServer and has been developed using Sparkl. All the configurations, logs, sources and scripts are stored in the AAAR folder. Several actions are performed during installation, in particular: - Creation of 2 database schema (one as Kettle repository and one as AAAR Data Mart). - Creation of a new JDBC data source in the Pentaho Server. - Creation of a repository structure with dashboards and reports installed inside. - Update of script stored into the file system.

how to remove WARNING: Security role name PENTAHO_ADMIN

INFO: WARNING: Security role name PENTAHO_ADMIN used in an <auth-constraint> without being defined in a <security-role> add following configuration before close   </security-constraint> <security-role>         <description>security role</description>         <role-name>PENTAHO_ADMIN</role-name>     </security-role>

after installation of Pentaho Repository Synchronizer using Marketplace

Installed Pentaho Repository Synchronizer with branch Trunk This plugin copies a version of libpensol.*.jar to the server's WEB-INF/lib. It's possible that on Windows boxes there's an error upgrading the repositorySynchronizer. If that happens, stop the server and delete the WEB-INF/lib/libpensol.* jar file(s)

how to hide .CDA files

To hide the .CDA files, its no use to the end user to see the datasource in the treeview so edit: biserver-ce/pentaho-solutions/system/cda/ plugin.xml And comment the lines between: <!– <content-types> … </content-types> //–>

MySQL server version for the right syntax to use near OPTION SQL_SELECT_LIMIT

http://stackoverflow.com/questions/1...select-limit-1 mysql> select VERSION(); +--------------+ | VERSION() | +--------------+ | 5.6.13-log | +--------------+ 1 row in set (0.00 sec) mysql> SET OPTION SQL_SELECT_LIMIT=10; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=10' at line 1 mysql> select VERSION(); +------------+ | VERSION() | +------------+ | 5.5.11 | +------------+ 1 row in set (0.00 sec) mysql> SET OPTION SQL_SELECT_LIMIT=10; Query OK, 0 rows affected (0.00 sec)Older versions of MySQL employed SET OPTION, but this syntax is deprecated in favor of SET without OPTION. You should just use SET SQL_SELECT_LIMIT=10; instead. Incompatible Change: The obsolete OPTION modifier for the SET statement has been removed.

Setting up Pentaho Report Designer for OpenERP

In order to generate reports from OpenERP v7 you need to have Pentaho Report Designer downloaded from Pentaho’s website and unzipped on your computer. The package is a binary package which doesn’t need installation on your computer and hence you can run it from the folder where you unzipped it. Here are the steps that you can follow to setup and run Pentaho Report Designer to Connect to OpenERP v7 and create reports: Pentaho Report Designer v3.9.1 is available from Sourceforge.net here . Download the package which is suitable to your computer architecture. For Windows Download  prd-ce-3.9.1-GA.zip You need Java JDK Version 1.6.0 and above. You can download java from www.java.com and install it on your computer. Once Java is fully installed run the file named “set-pentaho-env.bat” from Pentaho folder. This will setup your environment and then click on “report-designer.bat”. Pentaho Report Designer should run now. Close it now and move on to the next step. Report Desi...

Dynamic pivot tables (transform rows to columns)

Dynamic pivot tables (transform rows to columns)   in MySql there is no function of automatically table transformation. Surely we can use some program (tool), which is able to connect to MySql and execute data transformation. But in this case we want to do it manually, and we have one variant – to write a query which will execute the data rotation in the table   http://buysql.com/mysql/14-how-to-automate-pivot-tables.html   http://stackoverflow.com/questions/10925445/mysql-select-dynamic-row-values-as-column-names-another-column-as-value   http://stackoverflow.com/questions/10986031/sql-dynamic-view-with-column-names-based-on-column-values-in-source-table?rq=1

Transform a CDE Dasboard to be loaded in a CDF only Pentaho Server

http://rhaces.blogspot.in/2011/08/transform-cde-dasboard-to-be-loaded-in.html http://interestingittips.wordpress.com/2012/01/12/bullet-graph-dashboard/

max_allowed_packet error in mysql

Caused by: java.sql.BatchUpdateException: Packet for query is too large (1434172 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable. The max_allowed_packet variable can be set globally by running a query. However, if you do not change it in the my.ini file (as dragon112 suggested), the value will reset when the server restarts, even if you set it globally. To change the setting for everyone until the server restarts: SET GLOBAL max_allowed_packet=1073741824;

CDE CCC charts

http://redmine.webdetails.org/projects/ccc/wiki/FAQ_Main_Changes_New_Features_CCC_v2 http://forums.pentaho.com/showthread.php?150582-Bar-chart-colors-dynamically-changed-based-on-data-value-Along-with-JavaScript-vars/page2 http://www.webdetails.pt/ctools/charts/jsdoc/symbols/pvc.options.charts.Chart.html#clickAction Property       Type Description scene pvc.visual.Scene A scene is a node in a rendering hierarchy. Rendering generally follows the shape of a scene hierarchy. Each scene contains participating datums and vars (see below).  function a(scene){  this.scene.vars.series.value                  //for retrieving series value this.scene.vars.category.value               //for retrieving category value }