Log File using system.out

Log File using system.out If you want your System.out.print() output to be logged in the file rather than console, then that could also be possible by little trick. Before we start, System.out.print()  :: System – Java Main Class  :: out – Instance of PrintStream  :: print() – A public Method To achieve this we need to …Read More

Change Hive metastore from derby to MySQL

  Change Hive metastore from derby to MySQL   Machine : UBUNTU-14.04 |  Hive :  HIve 1.2.1 To change Hive Metastore from Derby to MySQL we need to follow these 8 simple steps,   Step-1 : First we need to install Mysql and its dependencies on system. Command-1 : sudo apt-get install mysql-server Note: Click Next > …Read More

Collection Part-1 : Java Arrays

Arrays are objects which store multiple variables of the same type, it is a collection of similar type of elements that have contiguous memory location. The length of an array is established when the array is created. After creation, its length is fixed. An array of 10 elements. It is an array of size 10, …Read More

Batch-Updation in Hibernate

Batch Updation in Hibernate JDBC has long been offering support for DML statement batching. By default, all statements are sent one after the other, each one in a separate network round-trip. Batching allows us to send multiple statements in one-shot, saving unnecessary socket stream flushing. Hibernate hides the database statements behind a transactional write-behind abstraction …Read More

Batch-Insertion in Hibernate

Batch-Insertion in Hibernate To enable batch-processing  to upload a large number of records into your database using Hibernate. If you are undertaking batch processing you will need to enable the use of JDBC batching. This is absolutely essential if you want to achieve optimal performance. Set the JDBC batch size to a reasonable number (10-50, …Read More

How to use system commands in LUA

How to use system commands in LUA Lets assume we have some requirement to call Unix-commands on the click of a button by using LUA . To achieve this follow these steps : 1. First check your Lua page is working or not ?  > Run your lua page to ensure that there is no …Read More

JAVA POLICY FILE..

   JAVA POLICY FILE                                       The Java™ 2 Platform, Enterprise Edition (J2EE) Version 1.3 and later specifications have a well-defined programming model of responsibilities between the container providers and the application code.   The java.policy file is …Read More

WATCHDOG

WATCHDOG INTRODUCTION For those embedded systems that can’t be constantly watched by a human, watchdog timers may be the solution. The watchdog timer is an important device in the embedded system , which is used to develop reliable products. Most of the embedded systems need to be self-reliant in order to restart and restore the system if …Read More

MySql case sensitive table names issue on Windows/Linux

MySql case sensitive table names issue on Windows/Linux   Moving a MySQL database from Windows to Linux .Many times we faced the problem that on Linux the names of the tables are case sensitive due to that we can’t find tables. Solution :- Note: Just altering the “lower_case_table_names” setting isn’t enough. It needs to be …Read More

CUBES

 Cubes The data structures used in the OLAP are multidimensional data cubes or OLAP cubes: An OLAP cube is a multidimensional database that is optimized for data warehouse and online analytical processing (OLAP) applications. An OLAP cube is an array of data understood in terms of its 0 or more dimensions. OLAP is an acronym …Read More