- BNotions uses Hadoop and Mahout for their Vu mobile app. Vu is a smart news reader that recommends articles based on article similarity to things you like as well as user similarity to you.
- Graph theory and graph processing algos are helpful for this work.
- Likes, dislikes, reads, skips are the most important input for their machine learning. Also relevant: user preference for breadth of topics vs depth; recency; natural language processing to extract topic keyword and organize topics by similarity.
- Redis is used for transient storage. It has some useful ops above just key-value. They use S3 as a data warehouse, but it could just as easily be HDFS.
- They use Amazon EMR as the Hadoop cluster. EMR constrains technology choice. For example, harder to use HDFS, hence Redis instead. They are evaluating HBase as an alternative — performance differences not relevant for use case.
- They don’t currently adjust for article length as factor in recommendations.
- They use a third party API for NLP, not Hadoop specidically. Only once per article, so not a bottleneck yet. Not happy with NLP quality, though.
- Cascalog/JCascalog to query the Hadoop data using Scala.
- Scalability is limited by cost, not capability. May switch from EMR to dedicated cluster, etc as cost grows.
- Data science 10%, engineering 90%. Stock algos for rapid application development, tweak after. Deployment (my own specialty!) can be painful.
- Service-oriented architecture (SOA) helps with deployment. Simplifies components, but adds a devops layer. Jenkins is used to automate builds.
I ran into this error while installing the IBM Java RPM on Red Hat Enterprise Linux:
error: unpacking of archive failed on file /opt/ibm/java-x86_64-60: cpio: chown failed - Invalid argument
The issue is due to /opt/ibm being an NFS mount on the system. There are known issues with running the chown command on NFS 4. One workaround is to specify NFS protocol version 3:
mount -t nfs -o vers=3 127.0.0.1:/share /mnt
In my case, the NFS mount was specified in /etc/fstab, so I modified the relevant line there to say:
127.0.0.1:/opt/ibm /opt/ibm nfs rw,vers=3 0 0
Spoiler: The iPad raffle was won by yours truly.
- At the Hadoop 2.0 session â€ª#TorontoHUG
- Got here just before they figured out how to get the projector to emerge. It’s shy and hides in the ceiling. â€ª#ToHUGâ€¬
- Also, just after pizza got here. Maybe I shouldn’t have grabbed that emergency bagel. â€ª#ToHUGâ€¬
- Hadoop 0.20 -> Hadoop 0.20.2 -> Hadoop 2.0 â€ª#ToHUGâ€¬
- Hive, which is SQL on Hadoop w/ JDBC drivers, now has Binary, Timestamp data types and bitmap indexes â€ª#ToHUGâ€¬
- Cool, Sqoop getting an IBM DB2 connector is a bullet point in a Cloudera presentation â€ª#ToHUGâ€¬
- MapReduce v2=YARN=Yet Another Resource Negotiator #ToHUGâ€¬
- MRv2 can support other processing frameworks. Eg graph processing, Santa Fe Institute simulations, etc â€ª#ToHUGâ€¬
- MRv2 is not about old API/new API. Unrelated â€ª#ToHUGâ€¬
- MRv2 good for research but not ready for production, even by startup standards â€ª#ToHUGâ€¬
- MRv2 allows Hamster MPI on Hadoop, Hama bulk synchronous processing, Giraph graph processing — none are MapReduce â€ª#ToHUGâ€¬
- In MRv1, JobTracker ran on Master, TaskTrackers ran on child nodes â€ª#ToHUGâ€¬
- In MRv1, JobTracker managed resouurces, scheduled, monitored
- Hadoop 2.0 can run either MRv1 or MRv2, but v2 not recommended for production â€ª#ToHUGâ€¬
- MRv2 has 1 Resource Manager, many Node Managers instead â€ª#ToHUGâ€¬
- But unlike JT, RM not a single point of failure because it now delegates App Managers to Node Managers per job â€ª#ToHUGâ€¬
- Resource management still central, but job management now decentralized â€ª#ToHUGâ€¬
- App Manager is like a library injected by RM into Node Managers â€ª#ToHUGâ€¬
- RM can die with low risk of losing jobs â€ª#ToHUGâ€¬
- App Master manages app lifecycle, negotiates resource containers with Resource Manager, monitors tasks on other nodes â€ª#ToHUGâ€¬
- In principle, no issue with running MRv2 on either HDFS or GPFS â€ª#ToHUGâ€¬
- The old Secondary NameNode is a terrible misnomer — not a backup NN â€ª#ToHUGâ€¬
- NameNode keeps track of all the data on all the DataNodes â€ª#ToHUGâ€¬
- HDFS Federation now allows for multiple NameNodes â€ª#ToHUGâ€¬
- In federation, each NN manages a namespace volume â€ª#ToHUGâ€¬
- HDFS Federation is not High Availability, is not Disaster Recovery â€ª#ToHUGâ€¬
- NNs in Federation do not communicate â€ª#ToHUGâ€¬
- Federation improves scalability, perf, isolation â€ª#ToHUGâ€¬
- A fed namespace volume consists of metadata, block pool (corresponding to files)â€ª#ToHUGâ€¬
- All Data Nodes are used by all the federated NNs â€ª#ToHUGâ€¬
HDFS High Availability
- NameNode High Availability is a new feature different from NN Fed â€ª#ToHUGâ€¬
- Two NNs: one active, one standy. Standby takes over on failure. Fencing to prevent split brain by killing old one on takeover. â€ª#ToHUGâ€¬
- Non-HA NN can fail via crash or planned maintenance. â€ª#ToHUGâ€¬
- Clients and DNs only talk to active NN. Standy maintains a copy of active’s state. Purpose of NN unchanged. â€ª#ToHUGâ€¬
- Active NN writes state to shared filesystem — NFS. â€ª#ToHUGâ€¬
- HDFS fences to kill splitbrain via SSH or shell scripts. â€ª#ToHUGâ€¬
- NFS is the new single point of failure — yay! But NFS has proven HA solutions as well. â€ª#ToHUGâ€¬
- Failover can be auto or manual. Use hdfs haadmiin -failover nn01 nn02 command â€ª#ToHUGâ€¬
- HA is in Hadoop 2.0 regardless of MRv1 or v2. â€ª#ToHUGâ€¬
- NameNodes runs on your beefiest machine. Upwards of 16gb of ram typical. Limit is JVM memory management, Java garbage collector. â€ª#ToHUGâ€¬
- OMGWTFBBQ I just won the iPad3 raffle â€ª#ToHUGâ€¬
- The IBM guy got it. “I swear they don’t pay me very much”. Heh. â€ª#embarrassedâ€¬ â€ª#woohooâ€¬ â€ª#ToHUGâ€¬
- HBase is a distributed, versioned, column-oriented, denormalized database â€ª#ToHUGâ€¬
- Horizontally scalable for fast random r/w. HBase is backend for FB Messages. Either source or sink for Hadoop jobs. â€ª#ToHUGâ€¬
- HBase is good for locality when used with Hadoop because data is stored near where it’s processed. â€ª#ToHUGâ€¬
- HB table consists of regions which consist of 1+ column family. Regions are the storage unit. Really good for sparse dbs. â€ª#ToHUGâ€¬
- Sparse=lots of empty fields=columns mostly empty=varying numbers of columns. â€ª#ToHUGâ€¬
- @ianhakes Ha! How about I drop the iPad off in your old office (aka mine)? ;-) â€ª#ToHUGâ€¬
- 1 column family is stored as 1 HFile. â€ª#ToHUGâ€¬
- HBase CRUD=Put Get Scan Delete â€ª#ToHUGâ€¬
- Google BigTable uses com-google, com-google-images, com-ibm, etc as keys for efficient scantables. Similar to what you want in Hbase â€ª#ToHUGâ€¬
- HMaster talks to HRegionServers contains HLog and HRegion contains MemStore contains HFile talks to DFS Client talks to DataNodes â€ª#ToHUGâ€¬
- ZooKeeper(s) stores config, logs, determines HMaster for HMaster, clients â€ª#ToHUGâ€¬
- HBase compaction=force write to disk. Relates to locality. â€ª#ToHUGâ€¬
- If you’re smart, don’t integrate HBase and Hive. Hive is map-reduce SQL job, HBase is a database. Hive best for regular HDFS data â€ª#ToHUGâ€¬
- HBase replication assumes column family exists in both clusters. No config required in child cluster. â€ª#ToHUGâ€¬
- BTW, I’m subbing adjective “child” for adj “slave” as a stylistic preference. â€ª#ToHUGâ€¬
- ZooKeeper quorum doesn’t have to be the same for HB replication. ZK quorum is an odd number of ZKs that agree on something. â€ª#ToHUGâ€¬
- HBase Coprocessor Observers=database triggers â€ª#ToHUGâ€¬
- HBase Co-pro Endpoints=stored procedures. In Java. Custom RPC protocol. Invoked by client on row or rowset. â€ª#ToHUGâ€¬
- HBase security has auth per table, per column family, per column qualifier. Stored in_acl_ table. â€ª#ToHUGâ€¬
I’ll be attending the New Features in Hadoop 2.0 – HA, FNN, HBase Coprocessors info session tonight. The session is being organized by the Toronto Hadoop User Group. It’s at 7pm near King East and Parliament in Toronto.
Feel free to say hello if you see me there.
I’ll be chairing theÂ Crunching Big Data in the Cloud with Hadoop and BigInsightsÂ workshop at CASCON 2011 in Toronto on Wednesday, November 9th. @BSteinfe and @MariusButuc will be joining me as co-chairs.
The workshop will be an all day hands-on introduction to Hadoop, HDFS, MapReduce, Hive, and JAQL. The plan is to have ready Hadoop clusters running in the cloud for the various exercises.
Hadoop is a parallelized data processing framework. It lends itself very nicely to running in cloud environments like Amazon EC2 and IBM SCE, as the core concept is to split sophisticated queries across clusters of commodity hardware. On a basic level it’s an implementation of MapReduce in Java, but a great many tools in its eco system make it easy to formulate and execute queries on the fly.
The material will have some things in common with the free Hadoop Fundamentals course you can take onÂ Big Data University today, though naturally adapted for the CASCON themes and with added hands-on instruction.
Here’s an interesting example from the InfoSphere BigInsights/Hadoop class I’m attending right now. Note that Social, Mobile, Games, and Heritage are tabs that you can switch between.
My work for the past couple years has been to develop DB2 images and templates for various cloud platforms and to engage the DB2 community online. This is still the case, but increasingly I’m spending my time working with IBM InfoSphere BigInsights.
BigInsights is IBM’s distribution of Hadoop.
What’s Hadoop? It’s a great way to crunch through massive amounts of unstructured data like email archives, geographic stuff, economic measurements, and so on to find interesting patterns. It rests on the Map-Reduce algorithm, which is what Google uses when you search. Much Google’s success rests on Map-Reduce’s ability to scale out on commodity hardware.
(Notably, the whole Cloud Computing thing is the flip side of using massive arrays of commodity hardware. Since you have so much of it, you need a way to automate and abstract the management as much as possible. Since you’ve automated and abstracted away management, you might as well sell it as a service.)
I really do recommend the macro that