Sponsored Content
Full Discussion: Hadoop file system
Top Forums UNIX for Dummies Questions & Answers Hadoop file system Post 302924200 by stew on Thursday 6th of November 2014 11:33:47 PM
Old 11-07-2014
Hadoop file system

Hi,

I am newbie to unix admin. I am doing migration from unix to puppet. Need few clarification in hadoop fille creation.

I knew what hadoop file does. But my doubt is, do we need to restart service for hadoop file creation.

Code:
"DL380p"

ha_file_cre='/root/hadoopfile
logit echo "Creating Hadoop Data disks script, which will run after final server reboot." 

echo "for part in  l m n o p q" >> $ ha_file_cre 
echo "do" >> $ ha_file_cre
echo "  echo "Partioning disk: /dev/sd\${part}" " >> $ ha_file_cre
echo "  echo ",,83" | /sbin/sfdisk /dev/sd\${part}" >> $ ha_file_cre
echo "  mkfs.ext4 /dev/sd\${part}1" >> $ ha_file_cre

I have attached the sample code.

So should I create package and service for hadoop file creation.

because in the comment they mentioned "logit echo "Creating Hadoop Data disks script, which will run after final server reboot."
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to mount a file system of a remote machine to local file system

Hi friends, In my case, there are serveral PCs running Linux in a LAN. I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory. I do not know how to do this. The situation is complicated by... (2 Replies)
Discussion started by: cy163
2 Replies

2. UNIX for Dummies Questions & Answers

Hadoop HUE - Error

Hi , I have installed Cloudera Hadoop successfully however when i am launching the web page for HUE , I am receiving below error message. Configuration files located in /var/run/cloudera-scm-agent/process/65-hue-HUE_SERVER Potential misconfiguration detected. Fix and restart... (4 Replies)
Discussion started by: rakesh_411
4 Replies

3. Linux

Hadoop - Adding Datanode

Hi Team , I have a new server which needs to be made as datanode for my existing single node cloudera setup . I did gone through some of the online documentation and most of them said to install to through cloudera manager , However my server cannot open for internet , Hence using Cloudera... (0 Replies)
Discussion started by: rakesh_411
0 Replies

4. Red Hat

Hadoop - Upgrade Issue

Hi All, I was recently trying to upgrade Hadoop from CDH4 to CDH5 ,however after upgrade found below issue , Looks like this is a known issue but unable to find a proper solution for it . log4j:ERROR Could not find value for key log4j.appender.EventCounter log4j:ERROR Could not instantiate... (3 Replies)
Discussion started by: Tomlight
3 Replies

5. Programming

To check file size in hadoop

Hi Guys, i am writng a script to check if the file size is lessthan limit say 10KB then exit i need to check in hadoop file system , can someone advise Minsize=10 for file in `hadoop fs -ls path/*` do Actualsize=$(du -k "$file" | cut -f 1) if ; then echo "File generated... (7 Replies)
Discussion started by: rohit_shinez
7 Replies
SSH2_METHODS_NEGOTIATED(3)						 1						SSH2_METHODS_NEGOTIATED(3)

ssh2_methods_negotiated - Return list of negotiated methods

SYNOPSIS
array ssh2_methods_negotiated (resource $session) DESCRIPTION
Returns list of negotiated methods. PARAMETERS
o $session - An SSH connection link identifier, obtained from a call to ssh2_connect(3). RETURN VALUES
EXAMPLES
Example #1 Determining what methods were negotiated <?php $connection = ssh2_connect('shell.example.com', 22); $methods = ssh2_methods_negotiated($connection); echo "Encryption keys were negotiated using: {$methods['kex']} "; echo "Server identified using an {$methods['hostkey']} with "; echo "fingerprint: " . ssh2_fingerprint($connection) . " "; echo "Client to Server packets will use methods: "; echo " Crypt: {$methods['client_to_server']['crypt']} "; echo " Comp: {$methods['client_to_server']['comp']} "; echo " MAC: {$methods['client_to_server']['mac']} "; echo "Server to Client packets will use methods: "; echo " Crypt: {$methods['server_to_client']['crypt']} "; echo " Comp: {$methods['server_to_client']['comp']} "; echo " MAC: {$methods['server_to_client']['mac']} "; ?> SEE ALSO
ssh2_connect(3). PHP Documentation Group SSH2_METHODS_NEGOTIATED(3)
All times are GMT -4. The time now is 04:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy