Spark-shell-Initiated problem solving _hadoop

Source: Internet
Author: User

Spark-shell-Initiated problem solving


Today in the start of the Spark-shell model of the wonderful appearance of the following several problems

1 Port occupancy: 4040 Port is occupied, we know that 4040 is the worker's port use, but is occupied, as shown in the following figure:


Use the following command: Netstat-ap |grep 4040

TCP6 0 0 [::]:4040 [::]:* LISTEN 2456/java

The port was found to be occupied by process ID 2456. Kill him.

Kill-9 2456


2) due to insufficient disk space, low memory, system power off and other causes Datanode DataBlock lost. Thus entering safe mode, use the following command to Bin/hadoop Dfsadmin-safemode leave. Then continue to scan the disk, remove the bad block Bin/hdfs fsck/-delete can be used after.

Minimally replicated blocks:0 (0.0%)
over-replicated blocks:0 (0.0%)
under-replicated blocks:0 (0.0%)
mis-replicated blocks:0 (0.0%)
Default Replication Factor:3
Average Block replication:0.0
Corrupt blocks:43
Missing replicas:0
Number of data-nodes:0
Number of racks:0
FSCK ended at Fri 20:51:22 PDT 2016 in milliseconds

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.