Mounting HDFS in Ubuntu platform - hadoop

Using Ubuntu platform, I am trying to mount HDFS (hadoop 2.2) using HDFS-FUSE but it keeps failing as shown below:
$ sudo apt-get install hadoop-0.20-fuse
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
hadoop-0.20-fuse : Depends: fuse-utils but it is not installable
E: Unable to correct problems, you have held broken packages.
$ sudo apt-get install fuse-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package fuse-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'fuse-utils' has no installation candidate
Could you anybody let me know if I need to use any other package to get this working.

Even i get the same error. Things have changed it seems, if you want to mount HDFS. try something like this.
http://www.spaggiari.org/index.php/hbase/hadoop-hdfs-fuse-installation#.U5BROPmSwkM

Related

Trying to Avoid Using Two Package Managers (pip and Poetry) for the Same Project

After a fair bit of thrashing, I successfully installed the Python Camelot PDF table extraction tool (https://pypi.org/project/camelot-py/) and it works for the intended purpose. But in order to get it to work, aside from having to correct a deprecated dependency (by editing pyproject.toml and setting PyPDF2 =”2.12.1”) I used pip to install Camelot from within a Poetry (my preferred package manager) environment- because I haven’t yet figured out any other way.
Since I’m very new to Python and package management (but not to programming) I have some holes in my basic understanding that I need to patch up. I thought that using two package managers on the same project in principle defeats the purpose of using package managers, so I feel like I’m lucky that it works. Would love some input on what I’m missing.
The documentation for Camelot provides instructions for installing via pip and conda (https://camelot-py.readthedocs.io/en/master/user/install-deps.html), but not Poetry. As I understand (or misunderstand) it, packages are added to Poetry environments via the pyproject.toml file and then calling "poetry install."
I updated pyrpoject.toml as follows, having identified the current Camelot version as 0.10.1 (camelot --version):
[tool.poetry.dependencies]
python = "^3.8"
PyPDF2 = "2.12.1"
camelot = "^0.9.0"
This led to the error:
Because camelot3 depends on camelot (^0.9.0) which doesn't match any versions, version solving failed.
Same problem if I set (camelot = "0.10.1"). So I took the Camelot reference out of pyproject.toml, and ran the following command from within my Poetry virtual environment:
pip install “camelot-py[base]”
I was able to successfully proceed from here, but that doesn’t feel right. Is it wrong to try to force this project into Poetry, and should I instead consider using different package managers for different projects? Am I misunderstanding how Poetry works? What else am I missing here?
Whenever you see pip install 'Something[extra]' you can replace it with poetry add 'Something[extra]'.
Alternatively you can write it directly in the pyproject.toml and then run poetry install instead:
[tool.poetry.dependencies]
# ...
Something = { extras = ["extra"] }
Note that in your question you wrote camelot in the pyproject.toml but it is camelot-py that you should have written.

Recovery specific directory from a deleted partition

I know that this question is very common, but sometimes are special cases.
I used dd if=/dev/zero of=/dev/sda bs=4M to fix a HDD with many badblocks. (I`m using Ubuntu live USB).
All 8 partitions (3 of them are big, 1 windows, 1 linux, and 1 to storage) were lost.
I`d like to try to recovery at least the storage partition or even some specifics directories within.
I tried grep on /dev/sda with -a option but I got this error grep: memory exhausted.
Also, I'm not able to install foremost or ddrescue. For this last one I got this message
$ sudo apt-get install -f ddrescue-gui
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ddrescue-gui : Depends: python3-wxgtk4.0 but it is not installable
Depends: gddrescue but it is not installable
E: Unable to correct problems, you have held broken packages.
But even to install lzip I`m getting errors.
At least 1 recent folder I need to getting from there.
Would you help me?
thanks in advance

Package gradle is not available, but is referred to by another package

Tried to install gradle using below command.
sudo apt install gradle
But there is some problem with my machine throws the below message.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gradle is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gradle' has no installation candidate

How to install 'x2goserver' and 'x2goserver-xsession' on Ubuntu?

I am trying to install x2go server on a remote machine with Ubuntu 14.10.
This is how I try to do it:
apt-add-repository ppa:x2go/stable
apt-get update
apt-get install x2goserver x2goserver-xsession
It was all going well until the last code line, and it outputs:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package x2goserver-xsession is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package x2goserver is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'x2goserver' has no installation candidate
E: Package 'x2goserver-xsession' has no installation candidate
I just want to connect the remote machine by using x2goclient which is installed on my personal computer.
Anyone has an idea how to solve this?

rubygems error installing rails

I get this error when trying to install ruby gems on my amazon instance. Can anyone explain?
ubuntu#ip-myinstance:~$ sudo apt-get install rubygems
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package rubygems is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
ruby
E: Package 'rubygems' has no installation candidate
I didn't understand that message. I was following directions from http://www.frontcoded.com/rails-on-amazon-ec2-ubuntu.html which says to do that. Also I tried
which rubygems
And that came out blank. If possible I would like to take down this question to stop the negative votes. Thank you.
You are trying to install the wrong package. In modern Ruby, rubygems come as part of it. The message you got also says so.
Even if there were a problem on the server side, not being able to download something through apt-get has nothing to do with whether rubygems site is down.
The message you got, which gives you an alternative suggestion, indicates that the relevant site (apt-get) is not down.
You can check the status of certain websites by using services like this.

Resources