pydev debugger: warning: trying to add breakpoint to file that does not exist: /home/workspace/work/Python/upload_file/upload_file/views.py (will have no effect)
<configuration> <property> <name>hive.metastore.warehouse.dir</name> <value>/user/hive/warehouse</value> <description> location of default database for the warehouse </description> </property> </configuration>
# 设置job名 set mapred.job.name=这是一个测试; # 设置job执行队列名 set mapred.job.queue.name=root.tcop; # 设定reduce内存大小,单位M set mapreduce.reduce.memory.mb=8048; set mapred.child.reduce.java.opts=-Xmx8048M; set mapreduce.reduce.java.opts=-Xmx8048M;
$ yum list | grep gcc gcc.x86_64 4.4.7-3.el6 @base gcc-c++.x86_64 4.4.7-3.el6 @base libgcc.x86_64 4.4.7-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4 compat-gcc-34.x86_64 3.4.6-19.el6 base compat-gcc-34-c++.x86_64 3.4.6-19.el6 base compat-gcc-34-g77.x86_64 3.4.6-19.el6 base gcc-gfortran.x86_64 4.4.7-3.el6 base gcc-gnat.x86_64 4.4.7-3.el6 base gcc-java.x86_64 4.4.7-3.el6 base gcc-objc.x86_64 4.4.7-3.el6 base gcc-objc++.x86_64 4.4.7-3.el6 base libgcc.i686 4.4.7-3.el6 base mingw32-gcc.x86_64 4.4.6-4.el6 base mingw32-gcc-c++.x86_64 4.4.6-4.el6 base mingw32-gcc-gfortran.x86_64 4.4.6-4.el6 base mingw32-gcc-objc.x86_64 4.4.6-4.el6 base mingw32-gcc-objc++.x86_64 4.4.6-4.el6 base
set nocompatible " required filetype off " required
" set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/vundle call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') "let Vundle manage Vundle, required Plugin 'gmarik/vundle'
" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin) " All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indent on " required
sudo wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz sudo tar -xvf pip-7.1.2.tar.gz cd pip-7.1.2 sudo python setup.py install
pip使用方法
1
sudo pip install module_name
安装python
有时候用pip安装,会提示:
1
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel
这时候不能像Ubuntu上安装python-dev,在CentOS上,名字变了,像如下安装:
1
sudo yum install python-devel
**备注:**如果是Ubuntu安装报错mysql_config:
1 2 3 4
libs = mysql_config("libs_r") File "/tmp/pip-build-a7IbwK/MySQL-python/setup_posix.py", line 25, in mysql_config raise EnvironmentError("%s not found" % (mysql_config.path,)) EnvironmentError: mysql_config not found
Operations to perform: Apply all migrations: admin, contenttypes, auth, sessions Running migrations: Rendering model states... DONE Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying admin.0002_logentry_remove_auto_add... OK Applying contenttypes.0002_remove_content_type_name... OK Applying auth.0002_alter_permission_name_max_length... OK Applying auth.0003_alter_user_email_max_length... OK Applying auth.0004_alter_user_username_opts... OK Applying auth.0005_alter_user_last_login_null... OK Applying auth.0006_require_contenttypes_0002... OK Applying auth.0007_alter_validators_add_error_messages... OK Applying auth.0008_alter_user_username_max_length... OK Applying sessions.0001_initial... OK
Operations to perform: Apply all migrations: admin, contenttypes, polls, auth, sessions Running migrations: Rendering model states... DONE Applying polls.0001_initial... OK