Enable filter rabbit.filter.ReverseProxy, by adding it to the front of httpinfilters value.
Configure values for sector rabbit.filter.ReverseProxy.
Run RabbIT:
java -jar jars/rabbit4.jar -f conf/rabbit.conf
Resource: http://www.khelekore.org/rabbit/
Enable filter rabbit.filter.ReverseProxy, by adding it to the front of httpinfilters value.
Configure values for sector rabbit.filter.ReverseProxy.
Run RabbIT:
java -jar jars/rabbit4.jar -f conf/rabbit.conf
Resource: http://www.khelekore.org/rabbit/
Edit file conf/mapred-site.xml to change amount of memory allocated to sorting:
<property>
<name>io.sort.mb</name>
<value>300</value>
</property>
Edit file conf/mapred-site.xml to change amount of memory allocated to each map/reduce task:
<property>
<name>mapred.child.java.opts</name>
<value>-Xmx800m</value>
</property>
Edit file conf/hadoop-env.sh to change amount of memory allocated to Hadoop daemons:
export HADOOP_HEAPSIZE=1000
Edit file conf/hdfs-site.xml to change ports used by HDFS
<property>
<name>dfs.secondary.http.address</name>
<value>0.0.0.0:51090</value>
</property>
<property>
<name>dfs.datanode.address</name>
<value>0.0.0.0:51010</value>
</property>
<property>
<name>dfs.datanode.http.address</name>
<value>0.0.0.0:51075</value>
</property>
<property>
<name>dfs.datanode.https.address</name>
<value>0.0.0.0:51475</value>
</property>
<property>
<name>dfs.datanode.ipc.address</name>
<value>0.0.0.0:51020</value>
</property>
<property>
<name>dfs.http.address</name>
<value>0.0.0.0:51070</value>
</property>
<property>
<name>dfs.https.address</name>
<value>0.0.0.0:51470</value>
</property>
Edit file conf/mapred-site.xml o change ports used by MapReduce
<property>
<name>mapred.job.tracker.http.address</name>
<value>0.0.0.0:51030</value>
</property>
<property>
<name>mapred.task.tracker.http.address</name>
<value>0.0.0.0:51060</value>
</property>
tar zvcf name.tar.gz --exclude path/to/dir1 --exclude path/to/dir2 path/to/tar
Note:
Recently, I need to install RPM to RedHat Linux, but I don't have root access. I found this post: http://ajaya.name/?p=6353. However, some commands in the command are not correct or need more clarification. So I wrote down my experience below.
%_rpmlock_path lib/rpm/__db.000 rpm --initdb \
--root /home/<user_name>/rpm-local/ \
--dbpath /home/<user_name>/rpm-local/lib/rpm
rpm --root /home/<user_name>/rpm-local/ \
--dbpath /home/<user_name>/rpm-local/lib/rpm \
-ivh package.rpm
rpm --root /home/<user_name>/rpm-local \
--dbpath /home/<user_name>/rpm-local/lib/rpm \ --relocate /usr=/home/<user_name>/rpm-local \
--nodeps \
-ivh package.rpm
This post shows how to add "Edit with Vim" and "Tab Edit with Vim" items to context menu (pop out when you right click a file) in Windows.
Run regedit.exe, go to HKEY_LOCAL_MACHINE/SOFTWARE/Classes/*/shell/
It seems that latest versions of vim automatically create the registry entry:
Hadoop uses log4j via Apache common logging. The config file is conf/log4j.properties.
Some important variables are set in the command line. Following is a snippet cut from the whole command line used to launch HDFS name node.
-Dhadoop.root.logger=INFO,DRFA
-Dhadoop.log.dir=/N/u/hdfs/programs/hadoop-0.21.0/bin/../logs
-Dhadoop.log.file=hadoop-hdfs-namenode-b009.log
-Dhadoop.home.dir=/N/u/hdfs/programs/hadoop-0.21.0/bin/..
-Dhadoop.id.str=hdfs
You can see that log dir, log file, log level, logger are set. DRFA is defined in conf/log4j.properties.
Currently, I need to convert pdf files to eps so that they can be included in latex files.
Use Acrobat Pro open the pdf file.
Click File -> export -> PostScript -> Encapsulated PostScript or use "Save As" and change "Save As Type"
However, the bounding box is NOT correctly calculated.
You can use gsview to correct it. Use gsview open the eps file, click "File -> PS to EPS", select "Automatically calculate Bounding Box" and save the output file.
Use ghostscript. Execute following command: gswin32 -sDEVICE=epswrite -sOutputFile=<filename>.eps <filename>.pdf
This works well and bounding box is correctly calculated.
pdftops -eps <filename>.pdf <filename>.eps In-line: $…$
Single line, without equation number: \[ … \] or \begin{equation*} … \end{equation*}
Single line, with equation number: \begin{equation} … \end{equation}
Multi-line, without equation number: \begin{align*} ... \end{align*}
Multi-line, with equation number: \begin{align} ... \end{align}
"a double backslash (\\) is used to separate the lines, and an ampersand symbol (&) is used to indicate the place at which the formulas should be aligned."
For align, \label must be put in front of each equation. For equation, it does not matter you put it in front or in the end.
Recently I started to use latex to write papers. I want to edit latex in my favorite editor - vim. I found the project vim-latex: http://vim-latex.sourceforge.net/. It is powerful and convenient to use.
However, one feature I want is to generate output files (.div, .ps, .log, etc) into a separate directory rather than the same directory as tex files. It turns out that vim-latex does not support it natively. So I hacked into the source code to make it work on Windows.
Edit file ~/vimfiles/ftplugin/tex.vim
Add following config:
set iskeyword+=: let g:Tex_Outdir='out' let g:Tex_ViewRule_pdf='"Foxit Reader.exe" ' let g:Tex_CompileRule_dvi='mkdir '.g:Tex_Outdir.' & latex -output-directory='.g:Tex_Outdir.' -src-specials --interaction=nonstopmode $*' let g:Tex_CompileRule_pdf=g:Tex_CompileRule_dvi.' & cd '.g:Tex_Outdir.' & dvipdfm $*.dvi'
Basically above config specifies
Change ~/vimfiles/ftplugin/latex-suite/compiler.vim
Change line 252 to (this line adds the full path of output directory):
let execString = 'start '.s:viewer.' "'.expand('%:p:h').'/'.g:Tex_Outdir.'/$*.'.s:target.'"'
Change line 405 to (this line adds the full path of output directory):
let execString = 'silent! !'.viewer.' "'.expand('%:p:h').'/'.g:Tex_Outdir.'/'.mainfnameRoot.'.'.s:target.'" '.line('.').' "'.expand('%').'"'