Showing posts with label install. Show all posts
Showing posts with label install. Show all posts

Installing docker, getting: `PreDepends: init-system-helpers (>= 1.54~) but 1.51 is to be installed`

  •  wget http://ftp.kr.debian.org/debian/pool/main/i/init-system-helpers/init-system-helpers_1.60_all.deb
  • sudo apt install ./init-system-helpers_1.60_all.deb
  • And finally sudo apt install ./docker-desktop-*-amd64.deb

Pip install Read timed out error

Error: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out 

Reasons:

  • the network speed is slow, which caused by instability
  • the default installation source for some libraries is pip the default source is pypi.python.org, if the server that installs the source is not in the country, it will be restricted

Solutions:(https://www.codestudyblog.com/cs2112pyb/1214135027.html)

1 change settings pip installation extension time
  • pip --default-timeout=100 install -U  library name 

2 change the mirror image

replace the use of domestic images during pip installation , general use of tsinghua university 、 these two images of douban

tsinghua mirror image :

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple  library name 
douban image :

pip install -i http://pypi.douban.com/simple  library name 
  domestic commonly used mirror images


3 set up proxy

pip installation by setting up an agent

pip install --proxy  proxy library name 

for example :
pip install -i http://pypi.douban.com/simple  --proxy http://10.22.96.13:8008 jupyter


4 modify pip change the source of the configuration file

by modifying the pip configuration , to change the default source to a domestic one, we only need the simplest command. "pip config set global.index-url source link " that's it. for example, replace it with tsinghua source. :

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

Install Hadoop 2.x or newer on Windows

Try to install Hadoop 2.5.0 on Windows based on the article and had a lot of problems than tried it on MacOX.

Article on Apache Website -  http://wiki.apache.org/hadoop/Hadoop2OnWindows


These are some errors I got while giving it a try:


Solution :
The binary distribution of Apache Hadoop 2.2.0 release does not contain some windows native components (likewinutils.exe, hadoop.dll etc). These are required (not optional) to run Hadoop on Windows. For this post only, the author of post below link have separately built hadoop-common-project to generate all the required native components. (Assuming you are using default Apache Hadoop 2.2.0 binary distribution) just download and copy all the files of hadoop-common-2.2.0/bin folder and paste them to /bin folder. And Enjoy!!!



Error : Connection Refused

Solution : 
You get a ConnectionRefused Exception when there is a machine at the address specified, but there is no program listening on the specific TCP port the client is using -and there is no firewall in the way silently dropping TCP connection requests. If you do not know what a TCP connection request is, please consult the specification.

Unless there is a configuration error at either end, a common cause for this is the Hadoop service isn't running.

This stack trace is very common when the cluster is being shut down -because at that point Hadoop services are being torn down across the cluster, which is visible to those services and applications which haven't been shut down themselves. Seeing this error message during cluster shutdown is not anything to worry about.

If the application or cluster is not working, and this message appears in the log, then it is more serious.
Check the hostname the client using is correct
Check the IP address the client is trying to talk to for the hostname is correct.
Make sure the destination address in the exception isn't 0.0.0.0 -this means that you haven't actually configured the client with the real address for that

service, and instead it is picking up the server-side property telling it to listen on every port for connections.
Check that there isn't an entry for your hostname mapped to 127.0.0.1 or 127.0.1.1 in /etc/hosts (Ubuntu is notorious for this)
Check the port the client is trying to talk to using matches that the server is offering a service on.


On the server, try a telnet localhost <port> to see if the port is open there.


On the client, try a telnet <server> <port> to see if the port is accessible remotely.
Try connecting to the server/port from a different machine, to see if it just the single client misbehaving.
If you are using a Hadoop-based product from a third party, including those from Cloudera, Hortonworks, Intel, EMC and others -please use the support channels provided by the vendor.


Please do not file bug reports related to your problem, as they will be closed as Invalid




Solution :
Problem could be that NN was formatted after cluster was set up and DN were not, so slaves are still referring to old NN.

We have to delete and recreate the folder /home/hadoop/dfs/data on local FS for DN.
Check your hdfs-site.xml file to see where dfs.data.dir is pointing to
and delete that folder
and then restart the DN daemon on machine

Above steps should create folder and resolve the problem.


Suppose the installation is finished perfectly and the node set appropriately, the steps for running job is as below:

Step 1 : Run setting command 

c:\deploy\etc\hadoop\hadoop-env.cmd

Step 2: Run HDFS deamon

%HADOOP_PREFIX%\sbin\start-dfs.cmd

Step 3: Run YARN deamon

%HADOOP_PREFIX%\sbin\start-yarn.cmd

Step 4: Run Test job (Finally!!!)

%HADOOP_PREFIX%\bin\yarn jar %HADOOP_PREFIX%\share\hadoop\mapreduce\hadoop-mapreduce-example
s-2.5.0.jar wordcount /myfile.txt /out




















It is running the task....




















Check the result while finished...

Bootcamp driver - unsupported on this computer model (How to install Bootcamp driver on mid 2009 Mac)

Step 1. Download Bootcamp driver from Apple Website (In my case, use Bootcamp 5.1)

Step 2. Run cmd as Administrator.


Step 3. Go to the downloaed directory which "Bootcamp.msi" located, run command below to install.


Step 4. After rebooting, U could see Boot Camp Control Panel and enjoy your Win 8 in Mac!