ubuntu-14.04

How to open HDFS output file using gedit?

心不动则不痛 提交于 2021-02-19 06:35:17
问题 I have installed and executed an mapreduce program successfully in my system(Ubuntu 14.04). I can see the output file as, hadoopuser@arul-PC:/usr/local/hadoop$ bin/hadoop dfs -ls /user/hadoopuser/MapReduceSample-output Found 3 items -rw-r--r-- 1 hadoopuser supergroup 0 2014-07-09 16:10 /user/hadoopuser/MapReduceSample-output/_SUCCESS drwxr-xr-x - hadoopuser supergroup 0 2014-07-09 16:10 /user/hadoopuser/MapReduceSample-output/_logs -rw-r--r-- 1 hadoopuser supergroup 880838 2014-07-09 16:10

Protocol Not Found socket.getprotobyname

谁说胖子不能爱 提交于 2021-02-19 03:39:19
问题 I'm trying to connect to an rabbitMQ server but the it keeps failing on connection with a socket.error: protocol not found error. In [1]: import pika In [2]: pika.BlockingConnection(pika.ConnectionParameters('ip_of_server')) with error output of --------------------------------------------------------------------------- error Traceback (most recent call last) <ipython-input-2-7adc44418966> in <module>() ----> 1 pika.BlockingConnection(pika.ConnectionParameters('localhost') 2 ) /usr/lib

Getting error in cv::imshow() - ASSERT: “false” in file qasciikey.cpp, line 501

岁酱吖の 提交于 2021-02-18 11:29:30
问题 I am getting this error whenever I call cv::waitKey(): ASSERT: "false" in file qasciikey.cpp, line 501 I am not sure why I am getting this error. I am running on an Ubuntu Server 14.04 EC2 instance connected through MobaXterm on Windows. If I run all of the same code on a normal ubuntu machine, all works great. This is the line where this happens: char key = cvWaitKey(33); 回答1: A workaround in MobaXterm is to uncheck "Unix-compatible keyboard" in X11 settings. 回答2: Try this. pip install

JavaFX mp3 playback Ubuntu 14.04

风流意气都作罢 提交于 2021-02-10 08:21:45
问题 I am trying to play mp3 file in java program using javafx. I installed dependencies libavcodec53 and libavformat53 mentioned here. I used following code public void play(String path_to_song){ JFXPanel fxPanel = new JFXPanel(); String song = new File(path_to_song).toURI().toString(); Media audio =null; audio = new Media(song); MediaPlayer mediaPlayer = new MediaPlayer(audio); mediaPlayer.play(); } But I still got error "Error media audio format unsupported" Exception in thread "main"

Docker warning on cgroup swap limit, memory.use_hierarchy

本小妞迷上赌 提交于 2021-02-07 12:39:48
问题 I am getting this warning from 'sudo docker -d': WARNING: Your kernel does not support cgroup swap limit. even after following the steps (as in this link): modify below lines in /etc/default/grub (I did both for good measure) RUB_CMDLINE_LINUX_DEFUALT="cgroup_enable=memory swapaccount=1" GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" and then update-grub/reboot via sudo update-grub; sudo reboot My questions are: 1) Should I be worried about this warning? I think I should be because I

NginX not executing PHP

僤鯓⒐⒋嵵緔 提交于 2021-02-07 12:19:32
问题 I've been through dozens of potential solutions to this problem but cannot find anything that works. Basically, PHP files are not executing on my NginX + PHP_fpm + Ubuntu 14 server. I have all the packages, and they are running. I've cleared browser cache etc., but nothing has worked yet. I appreciate all the help! As of right now, if I try accessing the PHP file, the GET will return it as an HTML file but will not execute the script. Here is my nginx.conf file: worker_processes 1; worker

Ubuntu: Do NOT lock the screen when pressing Super+L [closed]

时间秒杀一切 提交于 2021-02-07 05:10:43
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question Whenever I press Super+L (or Win+L ) on my Ubuntu 14.04 Desktop, the screen gets locked. I would like to disable this behaviour. In System Settings->Keyboard->Shortcuts->System there is a shortcut configured for Lock screen: Ctrl+Alt+L . It works. But I couldn't

Ubuntu: Do NOT lock the screen when pressing Super+L [closed]

拈花ヽ惹草 提交于 2021-02-07 05:10:39
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question Whenever I press Super+L (or Win+L ) on my Ubuntu 14.04 Desktop, the screen gets locked. I would like to disable this behaviour. In System Settings->Keyboard->Shortcuts->System there is a shortcut configured for Lock screen: Ctrl+Alt+L . It works. But I couldn't

Connect pyodbc to Postgres

早过忘川 提交于 2021-02-07 04:58:06
问题 Trying to connect to Postgres using pyodbc. I can connect to the DB with isql: echo "select 1" | isql -v my-connector Returns: +---------------------------------------+ | Connected! | | | | sql-statement | | help [tablename] | | quit | | | +---------------------------------------+ SQL> select 1 +------------+ | ?column? | +------------+ | 1 | +------------+ SQLRowCount returns 1 1 rows fetched But when I try to connect with pyodbc: import pyodbc con = pyodbc.connect("DRIVER={PostgreSQL

Apache using all 16 GB Memory, how to limit its processes and memory usage?

情到浓时终转凉″ 提交于 2021-02-07 04:32:25
问题 We are on 16GB AWS instance and I am finding it to be really slow. When I ran ps -aux | grep apache I can see about 60+ apache processes. When I ran watch -n 1 "echo -n 'Apache Processes: ' && ps -C apache2 --no-headers | wc -l && free -m" It is showing almost all memory being used by apache. When I ran curl -L https://raw.githubusercontent.com/richardforth/apache2buddy/master/apache2buddy.pl | perl to see how to optimize Apache, it suggested me to increase number of MaxRequestWorkers so I