13 ms·
I don't understand how these are comparable. Hadoop solved a hard problem that nobody had. Docker solves a simple problem that everyone has. It would make sense
by imtringued 7y ago
I don't understand how these are comparable. Hadoop solved a hard problem that nobody had. Docker solves a simple problem that everyone has. It would make sense if you're talking about kubernetes and using it to build hundreds of microservices because it's currently in fashion. Whether you're using Docker, Packer, Ansible or whatever doesn't matter. They are all a solution to the same problem and saying one is better basically boils down to saying which brand of hammer is better.
- pytester 7y ago>Docker solves a simple problem that everyone has. Docker provides an (IMHO pretty buggy) isolation layer that lies between "keeping things that need to be kept separate in separate folders" and "keeping things that need to be kept separate in separate virtual machines". I actually don't have the need for the level of isolation below VM and above folder very often. IMHO this level only really makes sense when containing and deploying somewhat badly written applications that have weirdly specific, non-standard system level dependencies (e.g. oracle) that you don't want polluting other applications' dependencies. I've compiled and installed postgres in separate folders lots of times (super easy) and I've lost count of the number of times people have said "why don't you just dockerize that?" as if that was simpler and/or necessary in some way. That's the effect of "docker hype" talking.
- sz4kerto 7y agoThe difference is standardization. Postgres can be installed in subdirectories nicely, as you say -- if you know how. Same is true for JBoss, CI build agent, whatever. Now if you have dozens of these apps then e.g. onboarding people in a remote team suddenly becomes non-trivial (a nightmare, to be precise). With Docker, they can get a complex system running in an hour. The two primary use cases for Docker is, as far as I can see, is simplifying deployment on varying environments. Variations can happen because of many reasons. Sometimes you have clusters of various sizes in production. Sometimes the environment is a developer laptop. And so on.
- pytester 7y ago>The difference is standardization. Postgres can be installed in subdirectories nicely, as you say -- if you know how. Or if you have, y'know, a really simple script. ...the kind which also runs inside most semi-complex Docker containers anyway.
- kevin_thibedeau 7y agoInstallation is the easy part. Seamless removal and replacement isn't.
- walterstucco 7y agoTrue But now you have to write it for at least Linux and Windows...
- stult 7y agoI've very rarely seen setup scripts that don't have implicit dependencies on the details of the host environment. Whether it's assumptions about the OS or file system or what related software may be installed or whatever. Often because the original developer can't predict every permutation of the possible interactions because of a combinatorial explosion of possible system setups, sometimes because the script is poorly written, and very often because the language or tooling itself is poorly isolated (eg, pip and npm). Docker is a lightweight way of guaranteeing deterministic setup script execution. Obviously you can still screw it up by pulling from unversioned base images etc, but the numbers of failure modes are limited, typically easy to locate (ie within a single dockerfile rather than across an entire OS), and relatively easy to prevent with some best practices. And best of all, that's true across languages. I can achieve the same effects with pipenv, yarn, or other tooling specific techniques like folder level postgres installs. But then as a developer I have to know the thousands of idiosyncratic pitfalls that occur across the plethora of tools I have to deal with every day. And realistically, I have to deal with a ton of poorly written applications and scripts that I want to execute with some degree of isolation without a ton of overhead. More than I could possibly ever fix.
- 7y ago
- deleted 7y ago[deleted]
- eeZah7Ux 7y agoThe isolation is done by many other tools, and with less bugs and vulnerabilities. > applications that have weirdly specific, non-standard system level dependencies Spot on. 99% of software the world needs can be written against libraries provided by OSes. And then packaged properly.
- ForHackernews 7y agoI sort of agree with this, but the advantage I see of Docker is in providing a "standard" (ymmv) interface that's less heavyweight than running an entire simulated virtual machine, but less dependent on the idiosyncrasies of a specific environment. I can give my coworker a docker image and it mostly "just work" without failing because she happens to be running a slightly different version of Ubuntu with different system libraries present.
- rlpb 7y agoI think the author's point is: > I can give my coworker a docker image and it mostly "just work" without failing because she happens to be running a slightly different version of Ubuntu with different system libraries present. "I can give my coworker a VM image and it mostly "just work" without failing because she happens to be running a slightly different version of Ubuntu with different system libraries present." and also: "I can give my coworker a full system container image and it mostly "just work" without failing because she happens to be running a slightly different version of Ubuntu with different system libraries present."
- ForHackernews 7y agoYeah, but a VM with virtualized hardware running a whole OS is so overkill for this use case.
- otabdeveloper1 7y ago90% of the time Docker is used to solve the problem of "how do I upload this bucket of Python crud to a production server?" (Replace 'Python' with any other language to taste.) A slightly smarter .tar.gz would have solved the problem just as well.
- eeZah7Ux 7y ago> A slightly smarter .tar.gz would have solved the problem just as well. It's called "OS package" ;) and can provide more strict sandboxing using a systemd unit file: unit files provide seccomp, cgroups and more.
- otabdeveloper1 7y agoIndeed you're right, but the problem is that your devs' machines and your production systems are running different OS's/distributions. Nix tries to solve this, but it isn't there just yet.
- Bootvis 7y agoI know there is cost to this solution but it's a good one: Use the same OS and similar hardware for development and production.
- randallsquared 7y agoThe cost includes making development impossible without internet access, given that devs are not going to be carrying a cluster of servers around with them.
- dijksterhuis 7y ago^ This. Also means developers can work in whatever environment they want, but the result will be reproducible (almost) anywhere.
- 7y ago
- manigandham 7y agoIt's not whether you need it, it's about becoming a standard. Ubiquity is a strength. It's much easier to learn a few docker commands that will run a container the same way everywhere instead of worrying about distros, folders, config files, volumes, etc. The container registry also makes software distribution much nicer than installing and configuring repos. It's great that you compile postgres but I just want to run it in a clean and portable way, along with several other programs, and without learning new workflows for each one. Docker containers give people more options to package and run software in a simple standardized process while offloading the tedious system details that don't matter. That's progress.
- bezoisevil 7y agoWrong. Think scaling, Docker will allow me to take a 3rd party app, containerize it and place it in an on prem cloud. I can use the containers for DR or migrating infrastructure. It solves a huge problem for Fortunes
- frenchtoastto 7y agoThat's not all that docker or any containerization gives you. For most people I've seen it's about infrastructure as code and quickly deploying Dev/staging environments. Yes you can do the same with ansible or terraform but what if you only want to test locally? Do you really want to wait for a VM to be carved out? Or just run a command and have things come up?
- weberc2 7y agoAlso, not needing to support log extraction or deal with unit scripts or SSH or bin packing applications onto VMs or mucking with ansible/packer/etc. Personally I don’t want to spend my time on needlessly tedious, uninteresting problems.
- ldoughty 7y agoBut this level of work requires an operations guy to know how do do all this right. Most (not all) developers can get to virtualenv or similar tools, but have issues keeping the rest of the system working and stable, or with firewalls, or with system patching. As an ops person myself, docket saved me lots of time.. defeated can run their containers locally then hand then over to me to stand up. As we move to hosted services, I don't even need to maintain a server. My role of shifting from spending lots of time on ansible and monitoring servers to helping look at code and spending more time investigating weird bugs outside the developers capacity. I was an early Hadoop adopter as well... And I agree with people's sentiment here -- it was a tool looking for a problem (outside it's specific use case). I used it for it's intended purpose, and I have with it too make it a web crawler to. It actually kinda worked in that regard, but it's not the right usage. It might be able to expand into new use cases though. Docker solves (again) a real problem in the industry that had existed for decades... And The problems solution keeps going back and forth. Nowadays we train developers, not systems engineers (I've been trying to hire a systems engineer for almost a year and have nearly no bites... Or developers positions get 3 good candidates worth interviewing in 2 weeks or less). This means we have lots of available developers and not enough ops people. Containers help shift the burden to work in this dynamic to -- it simplifies the process to get the devs application to work in isolation. This means 1 ops guy could support a dozen developers and 30 apps on one server relatively easily compared to before. It shifts the burden of the developers runtime environment to the developer... We can still step in too help, but when file that environment is codified in git. I've been an ops guy for a decade and unlike my positional colleagues I love Docker, it's let me focus on more important things.
- vincnetas 7y agoJust registered a bug issue. On "Steps to reproduce" simply put docker start command, and curl to reproduce an error. Without docker how can i be sure that maintainers will have same env as i have? This is very useful as far as i can tell.
- vkazanov 7y agoI'll correct you: Hadoop solves a hard problem that lots of big enterprises have. A distributed file system is a big deal, and everything that on top also is. Now making (big)money with its ecosystem is another question.
- nell 7y agoSolutions to hard problems of big enterprises should be the most juicy way to make money no?
- vkazanov 7y agoI am not a certified specialist in Hadoop-related things but there's definitely an industry of people working with Hadoop/HDFS/Spark/etc. It's almost a standard in Business Intelligence where I work these days. So there should be some money there.
- anticensor 7y agoHDFS is Hadoop, other parts being MapReduce, YARN and HDDS.
- HillRat 7y agoBig problems mean big projects, big risks, big staffing plans, big costs, and smaller margins. If you can bear the cost of sales, ten $10mm projects beat a single $100mm in my experience.
- Proven 7y agoIs that a joke? As an earlier comment noted great majority of Cloudera/Hortonworks paying customers have just a handful of nodes that usually work slower than a properly designed single system. As far as large customers with HDFS are concerned, many have realized that HDFS is shitty to manage and usually creates yet another data island and have been moving to generic single-host and scale-out file systems, as well as S3. In my estimate about 10-15 percent of users really need Hadoop with HDFS, the rest have wasted time and money.
- 7y ago
- geezerjay 7y ago> Hadoop solved a hard problem that nobody had. This baseless assertion is patently wrong on so many levels. Building computing clusters on COTS hardware is a very mundane problem. Running processing jobs on data shards is a very mundane problem. Scaling COTS clusters transparently is a very mundane problem.
- stingraycharles 7y agoInsert "almost" into parent's sentence and it becomes correct. Many people use/used Hadoop for problems that did not warrant the overhead and complexity that comes with Hadoop. I've seen it countless times with my own eyes that people pre-emptively use tools like Hadoop and Spark because of a chance that they will hit a massive scale in the future. This happens in both startups and enterprises alike: people like to think they have big problems too often.
- jabl 7y ago> This happens in both startups and enterprises alike: people like to think they have big problems too often. A.k.a. resume-driven development. Having Hadoop on your CV looks sexier than awk.
- arethuza 7y agoI was at a conference once where someone was presenting and describing something where they used Hadoop to do pretty simple processing on ~30MB of data and the audience appeared to be lapping it up. I just sat there thinking I could probably run what they did on my phone. And just to be clear - it wasn't a PoC or a demo.
- coredog64 7y agoThis. A prior employer spent millions on a Cloudera install that had 5 worker nodes and was being used to service a bunch of generic jobs. Worse still, it didn’t even use HDFS and we eventually got sick of the crappy embedded Zookeeper/Kafka setup.
- 7y ago
- misterman0 7y ago>> Hadoop solved a hard problem that nobody had. I'm genuinely curious, if you want to search over big data, which should be a pretty common procedure these days, what alternatives are there to a distributed file system? A dfs seems very complex to me. And it is not clear too me what alternative system designs a dfs will outperform. Is a dfs the only solution to big data? Relational DBs do break down at a certain scale. What system do you turn to next? Nosql? Will that scale infinitely? Will any system scale infinitely?
- raverbashing 7y agoThe issue is that 80% of "big data" isn't https://adamdrake.com/command-line-tools-can-be-235x-faster-than-your-hadoop-cluster.html https://adamdrake.com/command-line-tools-can-be-235x-faster-...
- misterman0 7y agoThat's not at all what my issue is though. I have what you might call "big data problems" and I'm so turned-off by Hadoop that I'm actually rolling my own distributed DB. But what principles other than a DFS should one look into, is the question, really. At least to me.
- vonmoltke 7y agoIt's a reaction to your statement > if you want to search over big data, which should be a pretty common procedure these days It's not a common procedure by any stretch because the vast majority of datasets aren't really "big".
- mattmanser 7y agoWhat's common about big data? My guess is that almost all programming jobs are in fields that produce no more data than a gb or two a month. I'm happy to be proven wrong, but I would guess that there are far more companies making project management software, time tracking apps, invoicing software, etc. than there are facebooks, googles or reddits obsessively logging every user mouse twitch. And that's data that's much better sitting in a nice, normal, relational database.
- manigandham 7y agoThey're comparable in the sense that neither technology had enough market demand to sustain the companies attempting to sell products. Great tech that we all benefit from, but the monetizable bits were not worth the investment. Then again it's called venture capital for a reason so this isn't exactly unexpected. The question should really be more about the scale and hype that was involved.
- StreamBright 7y agoWait, what problem does Hadoop solve?? Hadoop is an extremely poor reimplementation of some Google services. The time when billions went into Hadoop startups even Google stopped using MapReduce because it turned out to be inefficient and very limited to many of the distributed computational problems. MR was extremely well suited for a single thing: aggregating web logs and computing very simple summary statistics. What is the hard problem you mentioned? Btw. there are many very successful startups in the big data space that understood the limitation of Hadoop and addressed almost every if not all aspects of its shortcomings. A good example would be Snowflake computing.
- misterman0 7y ago>> Google stopped using MapReduce How are they then querying over big data these days? We don't know, do we? Or did they open-source their search engine? By using Hadoop people are trying to not reinvent the big data wheel, partly because it's a motherfucker of a problem to have to solve and party because they want to solve the business problem, not the technical one. I don't see how that is in any way worthy of being frowned upon.
- StreamBright 7y agoMaybe you and the downvoter crew do not know it. https://www.datacenterknowledge.com/archives/2014/06/25/google-dumps-mapreduce-favor-new-hyper-scale-analytics-system https://www.datacenterknowledge.com/archives/2014/06/25/goog... https://www.quora.com/Why-did-Google-stop-using-MapReduce-and-start-encouraging-Cloud-Dataflow https://www.quora.com/Why-did-Google-stop-using-MapReduce-an...
- yourbandsucks 7y agoThe same concepts are still there, it's just a nicer API now. Think Hadoop -> spark. Map -> map, filter, flatmap, etc Reduce -> reduce, joins, folds, group by, etc Those other concepts were always expressible as map and reduce, of course, just with a bunch of annoying repetitive work
- zerogvt 7y ago"Whether you're using Docker, Packer, Ansible or whatever doesn't matter. They are all a solution to the same problem" Nope. K8s is a cluster operating system that happens to fit very well with the microservices architectural model. Packer is a way to create classic VM imgs (this one is similar-ish to Docker but only if you only care about the 10000 feet non-technical-at-all image. Ansible is an infrastructure as a code tool. You deal with mostly classic infra components and compositions of them as code. Putting all them in the same bag is like saying that all programming languages solve the same problem. It's only true if we cut the conversation down to a level where we consider all digital devices as the exact same thing.