Featured Post

Python Regex: The 5 Exclusive Examples

Image
 Regular expressions (regex) are powerful tools for pattern matching and text manipulation in Python. Here are five Python regex examples with explanations: 01 Matching a Simple Pattern import re text = "Hello, World!" pattern = r"Hello" result = re.search(pattern, text) if result:     print("Pattern found:", result.group()) Output: Output: Pattern found: Hello This example searches for the pattern "Hello" in the text and prints it when found. 02 Matching Multiple Patterns import re text = "The quick brown fox jumps over the lazy dog." patterns = [r"fox", r"dog"] for pattern in patterns:     if re.search(pattern, text):         print(f"Pattern '{pattern}' found.") Output: Pattern 'fox' found. Pattern 'dog' found. It searches for both "fox" and "dog" patterns in the text and prints when they are found. 03 Matching Any Digit   import re text = "The price of the

How to verify SSH Installed in Hadoop Cluster Quickly

Below command helps, whether SSH is installed or not on your Hadoop cluster.

[hadoop-user@master]$ which ssh
/user/bin/bash
[hadoop-user@master] $ which sshd
/user/bin/sshd
[hadoop-user@master] $ which ssh -keygen
/user/bin/sshd

If you do not get proper response as above. That means that SSH is not installed on your cluster.

Resolution:


If you receive an error message

/user/bin/which: no ssh in (/user/bin: /user/sbin....)

You need to install open SSH (www.openssh.com) vial Linux package manager. Or by downloading the source directly.

Note: This is usually done by System Admin.

Comments

Popular posts from this blog

Explained Ideal Structure of Python Class

6 Python file Methods Real Usage

How to Decode TLV Quickly