Posts

Showing posts from November, 2021

CONFIGURE AND RUN HADOOP AND HDFS

  To install Hadoop can also be run on a single-node in a pseudo-distributed mode where each Hadoop daemon runs in a separate Java process. Procedure: Step 1: Download Hadoop 0.18.3 from the following website viz.     http://hadoop.apache.org/common/releases.html Step 2: Extract the hadoop tar.gz file as follows:- $tar -xvzf hadoop-0.20.2.tar.gz Step 3: Set the PATH and CLASSPATH variables appropriately in your .profile file and load it. Example: export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9 Step 4: The following files will have to be modified to complete the Hadoop setup:   Setup NAMENODE service: Open the file and enter the following in between the <configuration></configuration> tag: vi /home/hadoop/hadoop/conf/core-site.xml <configuration>   <property>   <name>hadoop.tmp.dir</name>   <value>ipaddress:port</value>   <description>A base for ot...

How to install hadoop in Ubuntu

  To install hadoop software framework for distributed storage and distributed processing of big data Procedure: Step 1: Install Ubuntu Server 12.04 LTS Step 2: Update the OS by type the following the command in prompt                         sudo apt-get update Step 3: Install Java sudo by type the following the command in prompt                         apt-get install openjdk-7-jdk Step 4: Download Hadoop 1.2.1 Step 5: Untar the Hadoop tar file.                         tar -xvzf hadoop-1.2.1.tar.gz Step 6: Rename the extracted folder                   ...

PHP Introduction-xampp download

PHP stands for Hypertext Preprocessor. PHP is a very popular and widely-used open source server-side scripting language to write dynamically generated web pages. PHP was originally created by Rasmus Lerdorf in 1994. It was initially known as Personal Home Page. PHP scripts are executed on the server and the result is sent to the web browser as plain HTML. PHP can be integrated with the number of popular databases, including MySQL, PostgreSQL, Oracle, Microsoft SQL Server, Sybase, and so on. The current major version of PHP is 7. All of the code in this tutorial has been tested and validated against the most recent release of PHP 7. PHP is very powerful language yet easy to learn and use. So bookmark this website and continued on. What You Can Do with PHP There are lot more things you can do with PHP. ·          You can generate pages and files dynamically. ·          You can create, open, read, w...

Prime Numbers in C program code

Image
  Introduction to prime Numbers in C A prime number is a finite numerical value that is higher than 1, and that can be divided only by 1 and itself. A few of the prime numbers starting in ascending order are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, etc. In C programming, there are a few possible operations involving the prime numbers like ‘to find if the given number is a prime number or not’, ‘to display all the prime numbers inside a given range’, ‘to display the prime numbers below a specific value’, and ‘to display the prime numbers above a specific value’. These scenarios can be coded in C programming using the conditional statements and looping statements, such as for loop, if else condition and while loop. Examples to Implement Prime Numbers in C In this section, we are going to discuss a few programs to check prime numbers using C language. Example #1 Program to check prime number in C using for loop. Code: #include<stdio.h> #include<conio.h> int main...