Flume configuration - hadoop

I am trying to configure Flume. When I run the following command:
sudo mv Downloads/flume-sources-1.0-SNAPSHOT.jar /usr/lib/apache-1.7.0-bin/lib/
I get the following error:
mv: cannot move Downloads/flume-sources-1.0-SNAPSHOT.jar' to/usr/lib/apache-1.7.0-bin/lib/': No such file or directory.
Any one can help me please?
Thanks.

In step 5 you are asked to download the file:
Use below link and download flume-sources-1.0-SNAPSHOTS.jar
https://drive.google.com/file/d/0B-Cl0IfLnRozUHcyNDBJWnNxdHc/view?usp=sharing
Then at the start of step 6 it says:
Move the flume-sources-1.0-SNAPSHOT.jar file from Downloads directory
to lib directory of apache flume:
Command: sudo mv Downloads/flume-sources-1.0-SNAPSHOT.jar /usr/lib/apache-flume-1.4.0-bin/lib/
This step has assumed that your downloads folder is called Downloads and is a subfolder of the one that your console is open at the time. If this is not the case, use the cd command to move to the folder where the newly downloaded file exists, and run sudo mv flume-sources-1.0-SNAPSHOT.jar /usr/lib/apache-flume-1.4.0-bin/lib/
Alternatively if you have access to a desktop on the machine, just cut and paste the downloaded file from where it went when you downloaded it from the internet into the folder /usr/lib/apache-flume-1.4.0-bin/lib/

Related

Installing Github .zip files on Chromebook via Linux

I'm using a Linux Debian terminal, trying to install a Github .zip file by following a walkthrough (from Chromebook). They're using a Windows terminal and access the zip file from a G: drive. They run the following:
C:\Users\zasur>G:
G:\>cd filename.zip
G:\filename>npm install
Which installs the Github zip. I've looked all over online and tried a few different solutions but can't get past the second command they run.
I was able to open /mnt/chromeos/MyFiles/Downloads from Linux by sharing the Downloads folder with it.
I'm not sure how to change the directory from here to the filename.zip and/or run commands from it. Whenever I try to run cd filename.zip or cd /mnt/chromeos/MyFiles/Downloads/filename.zip it always fails. Is this even possible on a Chromebook?

How to fix "error: cannot create ngrok Permission denied" in mac?

I am new to mac and bit confused about file structure .I am trying to download and access ngrok from my mac .I used below command to unzip the ngrok zip file
unzip /Users/apocha/Downloads/ngrok-v3-stable-darwin-amd64.zip
but getting below error:
Archive: /Users/apocha/Downloads/ngrok-v3-stable-darwin-amd64.zip
error: cannot create ngrok
Permission denied
This is folder where I have ngrok zip file /Users/apocha/Downloads
Can someone help me fix this issue ?
I tried changing permissions of the file using below command ,
chmod -x ngrok
but got error
chmod: ngrok: No such file or directory
Hey #Apoorva you can also use the UI to unzip the file, should be possible to unzip by double click it when viewing the file with Finder app...
Otherwise, just tested it on command line, cd ~/Downloads and then unzip ./ngrok-v3-stable-darwin-amd64.zip should also work.
Seems odd there are no permissions in your own downloads folder, but the last command chmod -x ngrok should also reference the exact filename and not "ngrok" if you want to change permissions for that file.

Windows 10 WSL - Maven config

Is there a way to configure Windows Maven and WSL Maven to use the same .m2/repository and settings.xml?
In my .bashrc from WSL I added the M2_HOME to use the same installation that Windows 10 use:
.bashrc:
export M2_HOME=/mnt/c/development/maven
Windows PATH:
C:\development\maven
But when I execute mvn clean install on Windows Bash, a .m2 folder is created in ~/.m2 (WSL folder system).
Found a possible solution.
I created a symbolic link from ~/.m2 to /mnt/c/Users/<username/.m2
Command: $ ln -s /mnt/c/Users/<username>/.m2 ~/.m2
Until the moment is working fine.
Just an amendment to #Vitor 's response:
When you created the symbolic link once, the next time (e.g. if you specified a wrong directory and want to retry) you cannot create it and you will get failed to create a symbolic link: file exists error.
As a workaround when you want to recreate the symbolic link, you can use $ ln -f -s /mnt/c/Users/<username>/.m2 ~/.m2
[OPTION]
-f, --force
remove existing destination files

Permission denied when trying to run karaf 0.8.1

I downloaded the OpenDaylight Oxygen SR1 Zip file, unzipped the karaf-0.8.1 file, changed my directory to it but when I try to run ./bin/karaf I get:
./bin/karaf: Permission denied
When I try sudo ./bin/karaf I get
sudo: ./bin/karaf: command not found
The weirdest part is that I also have the folder of the previous version, i.e. karaf-0.7.1, in the same Downloads folder and these commands work perfectly fine in there. I would like to use the latest version however. Could anyone help me please?
Edit: Sorry, forgot to mention I'm running it on Mac OS X
On a Unix-like system, you’re better off downloading the tarball: extracting that will give you files with the correct permissions.
In your case, to fix your setup, you need to run
chmod 755 bin/{client,inc,instance,karaf,setenv,set_persistence.sh,shell,start,status,stop}
to restore the permissions as they ship in the tarball.

How do I install IBM i Access for Mac?

IBM now has IBM i Access for Mac, with 5250 emulator being a very desirable feature, but the default install approach isn't the "Mac way" where users would expect it to exist in /Applications. How can I get it installed like a normal Mac app with an icon/application in the /Applications folder?
This is what worked for me. First download the zip file from here
Open up Mac's Terminal app (Cmd+Space and type Terminal)
cd into where the zip file now exists:
cd ~/Downloads
Use unzip to get the zip file contents into the /Applications folder:
unzip IBMiAccessT_v1r1.zip -d "/Applications/IBM i Access Client Solutions.app"
cd into the following folder where acs_mac_app.zip now exists:
cd /Applications/IBM\ i\ Access\ Client\ Solutions.app/Mac_Application
Now unzip the acs_mac_app.zip file into /Applications which will add content to /Applications/IBM i Access Client Solutions.app
unzip acs_mac_app.zip -d /Applications
You should now have "IBM i Access Client Solutions" with an icon in the /Applications folder, as shown below. Double click to start or do Cmd+Spacebar to open Spotlight and type "ibm" to locate it, as shown below.

Resources