2011-01-01ãã1å¹´éã®è¨äºä¸è¦§
This is just a private memo... ;-) Hadoop config files First of all, you should build your own Hadoop AMI with the following config files./home/hadoop/hadoop/conf/core-site.xml <property> <name>fs.default.name</name> <value>hdfs://hdpmgmt01/</value> <final>true</final> </property> /home/hadoop/hadooâ¦
ã¯ããã« Amazon EC2ã§ã¯ãRed Hat Enterprise Linux 6(RHEL6)ã®AMIãæé課éã§å©ç¨ãããã¨ãã§ãã¾ããï¼å©ç¨è ã¯ãRed Hatãããµãã¹ã¯ãªãã·ã§ã³ãè³¼å ¥ããå¿ è¦ã¯ããã¾ãããï¼AWSç°å¢å°ç¨ã®yumãªãã¸ããªãç¨æããã¦ããã®ã§ãyumã³ãã³ãã§ææ°ã®ã¢â¦
表é¡ã®åä½ç¢ºèªãåãã¾ãããå ¬å¼ããã¥ã¢ã«ã«ã¯æé ã®è¨è¼ã¯ããã¾ããããvirshã³ãã³ãããå®è¡å¯è½ã§ãã2012/10/11è¿½è¨ æ®å¿µãªããããã®æ©è½ã¯RHEL6ã§ã¯æ£å¼ãµãã¼ããããªãäºã決å®ãã¾ããããã®è¨äºã§ã¯RHEL6.1ã使ç¨ãã¦ãã¾ãããRHEL6.2以éã§â¦
ã詳解 Linuxã«ã¼ã㫠第3çãããLinuxã«ã¼ãã«2.6解èªå®¤ããªã©ã®Linuxã«ã¼ãã«æ¬ã§ã¯ãLinuxã«ã¼ãã«ã®æå»ç®¡çã«ã¤ãã¦ãè¶ çµ¶ã«è¦ç´ããã¨æ¬¡ã®ããã«èª¬æããã¦ãã¾ãã ä¸å®ã®æéééï¼1000Hzï¼ã§ã¿ã¤ãå²ãè¾¼ã¿ãå ¥ãã ã¿ã¤ãå²ãè¾¼ã¿ãã¨ã«jiffieså¤â¦
2011/10/23 å·çä¸ãéæã追è¨ãã¦ããã¾ãã GlusterFSã¨ã¯ GlusterFSã£ã¦ä½ï¼ã¨ããæ¹ã¯ãã¾ãã¯ãã¡ããåç §ãã ããã Quick Introduction to GlusterFS ã¯ããã¦ã®GlusterFS ããããèªãã°åããããã«ãGlusterFSã使ç¨ããã¨ãé常ã«ã·ã³ãã«ã«åæ£â¦
RHEL6.0ã¾ã§ã¯ãHighAvailabilityãªã©ã®Add-Onããã±ã¼ã¸ç¨ã®ãã£ã¬ã¯ããªãããRPMæ¬ä½ãã¾ã¨ãã¦å ¥ã£ã¦ããPackagesãã£ã¬ã¯ããªã¸ã®ãªã³ã¯ãããã¾ããã # pwd /mnt/iso/rhel60/HighAvailability # ll åè¨ 5 lr-xr-xr-x. 1 root root 11 9æ 23 08:20 2â¦
ä½ã®è©±ãã¨ãã㨠微å¦ãªéãã§ã¯ããã®ã§ãããRHEL5ã¨RHEL6ã§ã¯ãcronã¨anacronã®é¢ä¿ãè¥å¹²å¤ãã£ã¦ãã¾ããRHEL5ãéç¨ãã¦ããæ¹ã¯ãcronã¨anacronã®é¢ä¿ã cronãå®è¡ãããããå®æã¸ã§ããanacronã代ããã«åå®è¡ãã ã¨æãã¦ããã®ã§ã¯ãªãã§ããâ¦
ããªãã®ç®ã®åã®æºã«ç©ºã缶ã1ã¤ç½®ãã¦ãã ãããããªãã«ã¯ã空ã缶ã1ã¤è¦ãã¾ããå½ããåãã§ããï¼ååã®ãã®å ´æã«ã¯ã空ã缶ã¯ããã¾ããã§ãããä»®ã«ãããã¾ã§ä»®ã«ãããªãã®æ¨ªãèµ°ãå»ã£ã¦ãã人ãããµã¨åãæºã®ä¸ãè¦ãã¨ãã«ããªããããã®äººâ¦
ä½ããããã¨ããã¨ã å ±æãã£ã¹ã¯ã使ããã«DRBDã§ãã¼ã«ã«ãã£ã¹ã¯ã®ãã¼ã¿ãåæããã¦ãHAã¯ã©ã¹ã¿ãçµãã¨ãããã¯ããã¯ãããã¾ããããã¯ããã§ãããªã®ã§ãããé害çºçå¾ã®ååæã«æéãããããªã©ããªããªãéç¨ã大å¤ãªã®ãäºå®ã§ããã§ãDRBDâ¦
éããããã®è²´æ¹ã»ã»ã»ã»/proc/meminfoã®ãã£ã¡ã®å¤ã¨ãã£ã¡ã®å¤ã足ãããããªãã§ãã£ã¡ã®å¤ã¨åãã«ãªããªãã®ã»ã»ã»ã»ã¨æ©ãã ãã¨ããã¾ãããï¼/proc/meminfoã¯ãã«ã¼ãã«ãå é¨çã«ç®¡çãã¦ããæ çµã¿ã§ã®ã¡ã¢ãªæ å ±ããã®ã¾ã¾åºãã¦ããã®ã§ãæ®å¿µâ¦
ã¯ã©ã¦ãWatchã®Webãµã¤ããä¿®æ£ãããã¾ã§ãåãæ¥ãæ¸ãè¨ãã¦ããã¾ãã第2åï¼Eucalyptusã®ã¹ãã¬ã¼ã¸æ©è½â ã«ã¼ãããã¯ã»ããã¤ã¹ã®æ´»ç¨ ä¿®æ£å # for i in $(seq 8 255); do echo "loop$i" >> /etc/udev/makedev.d/50-udev.nodes ä¿®æ£å¾ # for i in $(â¦
ã¯ããã©ã¡ãã§ãããã int (*hoge)[10] çãã¯ãé åã¸ã®ãã¤ã³ã¿ãªã®ã§ãããï¼ç§ãå«ãã¦ã»ã»ã»ï¼ã©ããã¦ãããã¤ã³ã¿ã®é åã«è¦ãã¦ä»æ¹ããªã人ã¯ã次ã®æé ã§æ§æ解æãã¦ãã ãããã¾ãã丸ã«ãã³ã§ãã¤ã³ã¿è¨å·(*)ãhogeã«ç¸ãä»ãããã¦ããã®ã§â¦
2011/08/04 17:50 ã¯ã©ã¹ã¿ã®åºæ¬æ§æã¾ã§æ¸ããã 2011/08/05 18:50 ãµã¼ãã¹ãªã½ã¼ã¹ã®æ§æãæ¸ããã ãRHCSè¨è¨ã»éç¨å ¥éãã¨ããè³æãä½ãã«ããã£ã¦ãããããã°ããã®è¨å®ã£ã¦ã©ãããåãã«ãªããã ã£ãï¼ï¼ï¼ãã¿ãããªãã¨ããµã¯ãã¨ç¢ºèªã§ããâ¦
ã©ã£ãã®ãã¢ã«ä½¿ããããªããããã¨ãããã¨ã§ãã½ã¼ã¹ã¯ãã¡ããRHEL6.1ã§ä½ãã¾ãããã¨ã©ã¼ãã§ãã¯ã¨ããµãã¿ã¤ãºã¯çå£ã«ã¯ãã£ã¦ããªãã®ã§ãæ¬æ°ã§å©ç¨ãããæ¹ã¯ãã®ãããã¯æãå ãã¦ãã ãããtkinterããã±ã¼ã¸ãå¿ è¦ã§ãã # yum install tkinâ¦
ä¼¼ããã®ãæ¯è¼ãããã¨ã§ããã¾ã¾ã§æ°ã¥ããªãã£ãæ°ããç¥è¦ãå¾ããããã¨ãããã¾ãããªã©ã¨ãå°é£ããè¨ãæ¹ãããªãã¦ããï¼ã¤ï¼ã¤åå¼·ãã¦ãã¦ãããåãããªãã£ããã®ããï¼ã¤ä¸¦ã¹ã¦åå¼·ããã¨ãããåãã£ãããããã¨ããã¾ããããMonadã®å¿ç¨ä¾â¦
bindã®çµåå Monadã®bindæ¼ç®(>>=)ã®çµååã¯æ¬¡ã®æ§ã«è¡¨ç¾ããã¾ãã (m >>= f) >>= g â¡ m >>= (\x -> f x >>= g)ãªãã§ç´ ç´ã«ããæ¸ããªãã®ï¼ (m >>= f) >>= g â¡ m >>= (f >>= g) â ééãã¨æã£ãããªãã¯ãm,f,gã®åãèãã¾ãããã m :: m a f :: a -â¦
Kernel 2.6.37ã§å°å ¥ããã表é¡ã®æ©è½ããRHEL6.1ã«ããã¯ãã¼ãããã¦ãã¾ããé常ã«åãããããæ©è½ã§ãã®ã§ãå®é¨çµæãæ¸ãæ®ãã¦ããã¾ããï¼RHEL6.0ã«ã¯å ¥ã£ã¦ãã¾ããã®ã§ã注æããï¼ ãã©ã¡ã¼ã¿ã®èª¬æ ã»blkio.throttle.read_bps_device ã»blkio.tâ¦
7æããå¤åãã¦ããä¼ç¤¾ããªã¼ãã³ã½ã¼ã¹ã®æ¡ç¨ã«é常ã«ç©æ¥µçã§ããã¹ã¯ãããç°å¢ãLinuxåæã§ããããã§ãFedora15ããã¹ã¯ãããç¨ã«ä½¿ã£ã¦è¦ãã¨ããé常ã«å®æ度ãé«ãããªããªãæéãåãã¾ãããç¹ã«å¥½å°è±¡ãªã®ã¯ããã®ããããï¼ç§ãæå¾ã«ãã¹â¦
ã¡ãã£ã¨ãããã¢ã«ä¾¿å©ãããã¨ãããã¨ã§ä½ã£ã¦ã¿ã¾ããã005 㨠006 ã® 2 ã¤ã®ã³ã³ããã§ç¡é§ã«ã¼ãï¼loop005, loop006ï¼ãåãã¦ãã¾ããã©ã¡ãã CPU Pinning ã 1 ã«ã»ãããã¦ããã®ã§ãCPU1 ã ãã 100% ã§æ¯ãåãã¦ãã¾ãããã ããCPU Shares ã â¦
LXC ã®è§£èª¬ã«å¿ è¦ãªã®ã§ãã¡ãã㨠cgroups ã«ã¤ãã¦ã¾ã¨ãã¦ããã¾ããRHEL6.0 åæã§ããåèè³æ: RHEL6 ãªã½ã¼ã¹ç®¡çã¬ã¤ã Control Groups(cgroups) ã®æ¦è¦ cgroups ã¨ã¯ æè¿ã® Linux ã¯ãããããã»ã¹ã®å®è¡ã許å¯ãã CPU ã³ã¢ã®æå®ãªã©ãããã»ã¹â¦
2011/05/29 å·çä¸ããã 2011/05/31 ã³ã³ããã®èµ·åã¾ã§æ¸ãã¾ããï¼ 2011/06/06 cgroups ã®è¨å®ä¾ã追å ãããã§ã²ã¨ã¾ãå®æï¼ï¼ï¼ 2011/06/14 cgroups è¨å®ä¾ã« /dev/tty* ã®ã¢ã¯ã»ã¹æ¨©è¿½å ã©ããæ代ã¯ã³ã³ãããããã»ã»ã»ã¨ãããã¨ã§ãRHEL6.0 + LXCâ¦
ã«ã¼ãã«ã¢ã¸ã¥ã¼ã«ããã¼ãããéã®å®è¡ä¸ã«ã¼ãã«ã«å¯¾ããæ´åæ§ãã§ãã¯ã®ä»çµã¿ã«ã¯ãvermagic 㨠modversions ã® 2 種é¡ãããã¾ãã 太å¤ã®æã¯ã»ã»ã» å¤ãã«ã¼ãã«ã§ã¯ãã¢ã¸ã¥ã¼ã«ãã³ã³ãã¤ã«ããéã«ä½¿ã£ãã«ã¼ãã«ã½ã¼ã¹ã®ãã¼ã¸ã§ã³ã»ã¹ããªã³ã°â¦
ãHello, world. ã®æ¬¡ã¯ Mine Sweeper ãæ¸ãã¦ã¿ãã¨ããã®è¨èªã¨ä»²è¯ããªããããæ触ãåãããããããã¨å æ¥ã¤ã¶ãããæã«ãPython ã® Tkinter ãã¡ãã£ã¨èª¿ã¹ãæ©ä¼ããã£ã¦ãã£ããä½ã£ã¦ã¿ã¾ãããç°å¢ã¯ RHEL6 ã® Python 2.6.5 ã§ããTkinter ã使â¦
æå¤ã¨ã©ãã«ãæ¸ããã¦ããªããããªã®ã§ãã¡ã¢ãã¦ããã¾ãã #!/usr/bin/python from subprocess import * output = Popen( [ "vmstat", "1", "10" ], stdout=PIPE ) while True: line = output.stdout.readline() if not line: break print line ä¸è¨ã®æ¹â¦
éããããã®ãã·ã³ã«ã¼ã ã« 32core CPU / 160GB Memory ã®ãµã¼ãã 2 å°ã¨ 10TB ã® SAN ã¹ãã¬ã¼ã¸ããã£ãã®ã§ãããããã« RHEL6 ã® KVM + RHCS ã§ã¯ã©ã¹ã¿ãçµã㧠100VM èµ·åãã¦ã¿ã¾ããã æ¬å½ã«ãããªãµã¼ããããã®ï¼ ããã¾ããã # cat /proc/cpuâ¦
ãããã®ããã® Linux ã·ã¹ãã ã»ãããã¯ã¼ã¯ç®¡çæè¡ã ã®åºçã決ã¾ãã¾ãããï¼æä¸æ¬ã«çºå£²ã®äºå®ã§ããï¼åæ¸ ãããã®ããã® Linux ã·ã¹ãã æ§ç¯ã»éç¨æè¡ã ã®ãããã¯ã¼ã¯ç·¨ã«ãããã¾ãã2 åã»ããã§èªãã§ããã ããã¨å¹¸ãã§ããï¼åç« ã®æ¦è¦ã¯â¦
ã»Haskell ã¬ãã«ï¼ããµã¤ãã® Haskell ããã°ã©ãã³ã°ãã¨ããReal World Haskellããèªã㧠Hine Sweeper ãæ¸ãã¦ã¿ãã¬ãã«ã ã»OCaml ã¬ãã«ï¼ï¼é±éåã« OCaml ããã°ã©ãã³ã°å ¥é ãèªãã ã ããã¨ãã人éï¼ã¨ãããç§ã®ãã¨ã§ãï¼ãé©å½ã« Web ä¸ã®â¦
ãã¬å³¶éä¿¡ãã®è¤ä»£ãããããå©ãããã¸ã£ãã³ ãã©ã³ãã£ã¢æ å ±ã¹ãã¼ã·ã§ã³ï¼VISï¼ãã®æ´»åã«ã¤ãã¦ã話ã伺ãæ©ä¼ãããããVIS ã RSS/XML ã§å ¬éãã¦ãããä¸è¬ãã©ã³ãã£ã¢åéæ å ±ããå±éããããã®ã¢ããªã±ã¼ã·ã§ã³ï¼Web ãµã¤ãï¼Blogãã¼ããªã©ãªâ¦
ãPerl ã§åãæ¥ãXXXãããªãããªãããããã¨ããéã«ä½¿ãã Tips ãå¾ç¶ã«æ¸ãã¦ã¿ã¾ããã¿ãªããã«ãå§ãããã¨ããããããç§ã¯ãããã£ã¦ãããã¨ããç´¹ä» ï¼ èªåã®ããã®è¦ãæ¸ãã§ãããã£ã¹ããªãã¥ã¼ã·ã§ã³ä¾åã¯ãã¾ããªãã¨æãã¾ãããä¸å¿â¦
ããããªæã«æ¸ããã¦ããæ å ±ã§ã¯ããã¾ããã»ã»ã»ãå®éã«ä½¿ã£ã¦ä¾¿å©ã ã£ãã®ã§ãã¾ã¨ãã¦ããã¾ãã Net::Twitter::Lite ã®å°å ¥ CPAN ããå°å ¥ã§ãã¾ãã # cpan Net::Twitter::Lite /usr/lib/perl5/5.8.8/CPAN/Config.pm initialized. CPAN is the worldâ¦