<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Josiah B on Medium]]></title>
        <description><![CDATA[Stories by Josiah B on Medium]]></description>
        <link>https://medium.com/@josiah14?source=rss-5a6532771ab3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*z8c7Ag9T9CY0fxagm2Vz-w.jpeg</url>
            <title>Stories by Josiah B on Medium</title>
            <link>https://medium.com/@josiah14?source=rss-5a6532771ab3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:35:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@josiah14/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[FaradAI: Giving Coding Agents a Smaller Room]]></title>
            <link>https://medium.com/codex/faradai-giving-coding-agents-a-smaller-room-b29cfeaf5423?source=rss-5a6532771ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b29cfeaf5423</guid>
            <category><![CDATA[sandboxing]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Josiah B]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 01:53:15 GMT</pubDate>
            <atom:updated>2026-07-14T09:49:47.767Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>I watched Claude Code reach for </strong><strong>&quot;find ~”, then used agentic coding help to build a Docker wrapper so agents get the project, not the whole house.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hB838iEY-8dhSpMxognRrw.png" /></figure><p>Project Source Code @ <a href="https://github.com/josiah14-automation-engineering/FaradAI/tree/master">https://github.com/josiah14-automation-engineering/FaradAI/tree/master</a></p><h3>1. The Moment I Caught the Agent Snooping</h3><p>One sunny day in early May, I was blissfully hacking away on something I’d been wanting to build for years: a reproducible Doom Emacs IDE, containerized in Docker, with a separate configuration for each cluster of programming languages. I’d heard all the kerfuffle about agentic coding and decided to find out, so I installed Claude Code and put it to work.</p><p>For a while, it was exactly what it promised. It sped up troubleshooting, ate boilerplate I’d grown weary of writing after two decades, and granted every request. Better than a genie: no three-wish limit. A particularly good arrangement, I thought.</p><p>Then I noticed it was perhaps a bit… too genie-like.</p><p>I watched Claude Code reach for find ~.</p><p>I had asked it to find a sibling project — another directory in ~/Development/personal/. A small errand that became immediately sobering. Meticulous me caught the proposal and rejected it. If I hadn&#39;t, the entire layout of my home would have been transmitted to Anthropic&#39;s servers as part of the conversation context, and with nothing to be done about it after.</p><p>It was a djinn with no lamp.</p><p>Well-meaning, fully comprehending, and immensely powerful. And with access to everything in the room… and everything in the next room… and everything down the hall… It was doing exactly what I asked. It simply reached for the whole house to do it.</p><p>I stomped the brakes on the IDE. That day, a new project was born. I named it FaradAI and didn’t put it down until I could feel safe returning.</p><p>Sixteen days later, FaradAI had reached an alpha status I felt comfortable sharing.</p><p>If an AI coding agent can run shell commands as my user on my host, then a prompt or a setting cannot contain it. But a container… a container can.</p><h3>2. Prompts and Settings are Not Containment</h3><p>When I talk with colleagues or read posts about AI coding agents overreaching, the proposed fix often sounds like: tell it not to.</p><p>A prompt, a project memory file, a skill or a setting in the agent’s configuration, a carefully worded policy document… <em>Do not inspect files outside this directory.</em></p><p>All of these are just requests. Container isolation and OS permissions are true boundaries.</p><p>You cannot talk a djinn into a smaller room. Its reach is governed by the lamp, not by wishes. Prompts and settings are wishes, not lamps. They do not create an enforceable boundary, but vessels do.</p><p>Capability compounds. Courtesy is frozen. The gap between them grows every time a new model ships.</p><h3>3. The First Cage: Docker, Mounts, and No Docker socket</h3><p>The container FaradAI creates has a short list of principles.</p><p>Mount only the project directory and whatever you truly need for the work, definitely not the entire home directory. Do not mount the Docker socket. Run the agent as a normal user inside the container. Accept that what this gives you is a containment boundary, not a magic circle.</p><p>The name comes from the Faraday cage: a conductive mesh that blocks electromagnetic fields. The analogy is stronger than it first appears: Faraday cages need not block everything. FaradAI works the same way: the project comes through, the Docker socket and risky host details do not. Selected signals in, unwanted signals out.</p><p>As of v0.3.0-alpha.1, the agent sees the project directory, an SSH socket if it needs one, and an open network. It does not see the host process tree, the host environment wholesale, the Docker socket, or arbitrary host filesystem paths. It sees the project directory and the credentials or sockets I specifically choose to provide.</p><p>From the project’s genesis, I made one decision: the reasoning would be inspectable. The BUILDLOG and DECISIONLOG together record the reasoning behind every decision, before and after the first release. When AI agents are commonly left to run amok in codebases, it felt essential to make my own use of AI visible: as an assistant, not a replacement for owning engineering judgment and discernment.</p><h3>4. Environment Variables are Exposed</h3><p>The first version of FaradAI passed the OpenRouter API key as an environment variable. This seemed reasonable: the agent needed it to function and environment variables are a standard delivery mechanism. A contained secret, I thought.</p><p>A model review had already flagged the env var approach as a security inconsistency. I accepted the tradeoff initially: the key had a spend limit. Then during a smoke test, an agent ran env | grep to check what was actually visible inside the container. The full key value appeared in tool output and was transmitted to Anthropic’s servers as part of the conversation context. Low risk for me; not something I could assume for every future user. If the agent can run env, the agent can read your env.</p><p>So I established a policy for the alpha: credentials as read-only file mounts, never as environment variables. env is a routine diagnostic that sprays every variable into output at once; there is no equivalent command that surfaces file contents the same way. Read-only prevents mutation; it does not create secrecy.</p><p>The limitation became clear when I tried to diagnose a configuration error in aider. Asking the agent to look at ~/.aider.conf.yml to debug the problem would have sent the OpenRouter key the same way. The mitigation I was reaching for would have enacted the leak I was trying to prevent. However, since it was a file read, the agent had to ask permission, so I could reject the command and propose a safer approach. The :ro mount narrowed the exposure window; it didn’t close it. I accepted this for the alpha: my blast radius was still bounded, and the move to file mounts had meaningfully reduced the risk.</p><p>For personal or preliminary FOSS work, I decided a cost-capped key was an acceptable tradeoff. For sensitive or client work, a credential broker is the right answer: one that intermediates provider API calls so the agent uses the APIs without ever receiving a reusable key. This is on the roadmap.</p><h3>5. A Case of Premature Enhancement</h3><p>Not every wrong turn was a security issue. The multi-agent problem was a design one.</p><p>The goal was to run a second AI agent alongside Claude Code, comparing their approaches on the same codebase. The first approach was programmatic: a background aider session in tmux, driven by send-keys and capture-pane. It worked. So the scope expanded — a user-facing split mode, both tools side by side. Then the host ~/.tmux.conf mounted in, so the container would feel familiar.</p><pre>┌─────────┐<br>│ ┌─────┐ │<br>│ │ ┌─┐ │ │<br>│ │ └─┘ │ │<br>│ └─────┘ │<br>└─────────┘</pre><p>The structure had the shape of a Droste tin: a terminal multiplexer nested inside a terminal already capable of multiplexing, each layer a faithful copy of the one above it. The tin holds a nurse holding a tin holding a nurse.</p><p>The prefix key is the cue the inner tmux existed to catch. But the host tmux sat where the audience was already looking. Every keystroke addressed to the inner session reached the outer one first. The inner tmux was an understudy who never went on.</p><p>The fix was to stop printing the inner tin: remove the user-facing split-pane, replace with a named container and docker exec. The programmatic layer underneath (send-keys and capture-pane) was sound and stayed.</p><p>A security wrapper should not be so clever that using it feels like debugging the wrapper.</p><h3>6. The Human Discernment Bill Comes Due</h3><h4>The necessity of presence</h4><p>By now the lamp was built, and built fast: a respectable prototype in about ten days. A thing that becomes real this quickly is a thing you trust before you should. The djinn I had feared, the well-meaning one that reached for the whole house, now sat in a container with only the project before it. So I wasn’t giving it the same level of scrutiny as before, which is where these stories turn, and it showed me a second face, the one the lamp does nothing to cover.</p><p>The first incident came through the very arrangement from the last section: my primary agent using a background tmux session to manage a live session with the secondary agent. A keystroke went out too early, the letter n, meant to dismiss a notice that had not yet appeared. The timing problem was simple: the secondary agent reached its prompt first and found one character of instruction sitting above a full view of the project. So it did the obvious thing: it read n as the wish, rewrote the project&#39;s own instructions file in a warmer, friendlier tone, pleased to help, and reported the good news.</p><p>Luckily, this could be undone with a simple git checkout, which is the only reason this is a comedy.</p><p>This is the djinn’s other face, and it’s strangely shaped like an old children’s book character: Amelia Bedelia. Told to dress the chicken, she sews it a little outfit; told nothing at all, she will still, helpfully, do <em>something</em> with whatever lands in her hands. The agent is well-meaning, fully comprehending, immensely powerful, and it does exactly what it understands. Its understanding is not always what you meant to convey.</p><p>I kept several agents pointed at the code throughout, with the working assumption that a blind spot in one is often a bright spot in another. I had added a convenience, a way to pass extra flags to the container at launch; it seemed reasonable. The review found an open door: with no per-flag check, a user could pass --privileged, or mount the whole host read-write, and stroll past every capability I had carefully dropped. I replaced it with an allowlist, gating the dangerous flags behind an explicit opt-in. Write an enhancement, let agents review for gaps, then fill said gaps. This loop was becoming instinct.</p><p>Agent reviews were also reliably surfacing more mundane concerns: a CI setup watching the wrong branch and therefore never running, two hardening flags that looked correct and weren’t, one false positive that went straight in the discard pile. The source and the tests had the last word, never the model.</p><p>TDD became my favorite tool for verifying correctness. AI accelerated development and made detailed docs and logs feasible. And I was still the presiding judge.</p><h4>The cost of context-starved review</h4><p>That is, until life got busy and I could see the end of the first alpha peeking over the horizon, I subconsciously began setting the gavel aside. As I mentioned, I was building FaradAI inside FaradAI. With the cage holding and the agent meaningfully restricted, I relaxed my gaze and began letting things slip. I was still reviewing the code, just not beyond the diffs that the agents were immediately presenting to me. I had stopped weighing each change against its larger context and the whole of the script, and this lead to a second incident of a different nature.</p><p>Every change to the command-line arguments looked like nothing, because in isolation every change <em>was</em> nothing: a line here, a branch there, each one reasonable on its own. And under my nose, one reasonable line at a time, the code behind two of its CLI flags, -n and -a, curdled into roughly fifty lines of spaghetti that was bad past the point of overstatement. It was tragically coupled to itself and to seemingly unrelated sections of the script; I literally pushed myself back from the desk and gripped my hair when I saw it. Had I kept coding that way for even one more week, at the pace I was moving, untangling it would have cost more than writing the whole thing by hand from the start.</p><p>So I tore it out and rebuilt it across three test-first passes, the test count climbing from 46 to 142, the parsing finally broken into honest phases. Even the rebuild was not a solo act. One agent sailed straight past an ordering bug that would have met a new user with a false accusation; another caught it at a glance, which is the whole case for keeping more than one set of eyes in the room. A third, sent to inspect the finished work, found six seams still holding hands that had no business touching. And set -e had laid its favorite snare: a function whose last line is a bare conditional reports failure whenever the condition is false, then takes the whole script down with it, very politely.</p><p>None of these incidents were the agents sneering at me with a maniacal grin; each was dutifully doing exactly what it was told, just failing to discern where exactly-what-it-was-told was wrong. The question was never whether to trust the agent’s ability — it was understanding the shape of that ability: what it executes without faltering, and where it needs a hand on the gavel.</p><p>That is the bill agentic speed comes with, and it does not go unpaid: the faster the hand, the more visible my judgment has to be. By the end, the conviction was total. The agent does not get to write a line outside my full view of the script. I read every one in its full context before approving.</p><h3>7. Defined by What It Admits</h3><p>The container FaradAI creates is defined by what it admits.</p><p>The project directory comes through. The home directory does not. SSH-agent forwarding arrives; raw ~/.ssh and the Docker socket stay on the host. --cap-drop ALL and no-new-privileges:true remove capabilities at the kernel level. The base image is pinned by SHA256 digest and packages by exact version, so what builds today is less exposed to whatever the registry decides is canonical tomorrow. Resource limits put a ceiling on memory, CPUs, and PIDs. Named containers, explicit flags for attach and create. A Bats suite under GitHub Actions CI, grown to 217 tests by the third alpha.</p><p>Network egress is unrestricted by default as a considered decision, not an unfinished edge. Host-side iptables allowlists are brittle because Docker manages its own rules aggressively and CDN IPs rotate unpredictably. A forward proxy adds a host service to maintain and doesn’t stop raw TCP that bypasses it. Open network is what remained after the alternatives were evaluated. FARADAI_NETWORK_MODE=none exists for offline sessions; a credential broker that intermediates outbound traffic is on the roadmap for a more real-world-capable version.</p><p>At this alpha stage, FaradAI is a workable containment boundary for work that doesn’t handle PII, financial data, or health records. It is not an enterprise security solution, nor a microVM.</p><p>Today, it is an answer for low-risk personal and FOSS work. It is growing into a more serious one.</p><h3>8. Mine to Mistype</h3><p>I knew the build was done when review after review stopped turning up anything that mattered. By the time the agents were flagging already-fixed items and stale corrections, the core work was behind me. That is a good stopping criterion, and not yet a victory lap. The reviews had not run out of things to say, only of things that mattered.</p><p>The work ahead is a strict mode, project policy files, and stronger release integrity. The migration to Go, Nushell, and Podman is on that list too, and I will write every line of it by hand. Go and Nushell are not languages I own; Podman is new territory. Letting an agent write that code would mean reviewing at half-confidence. I want to learn these tools. That is a wish a djinn can only assist with, not grant. Ask it to grant anyway, and it hands you the finished work, skipping the part where you become someone who could have written it.</p><p>FaradAI exists because agent-assisted coding worked well enough to make me uncomfortable with the default setup, and significantly helped me build an initial response to it. The problem is impossible to ignore now. I will keep iterating.</p><p>The agent can have the project, and never the whole house.</p><p>Project Source Code @ <a href="https://github.com/josiah14-automation-engineering/FaradAI/tree/master">https://github.com/josiah14-automation-engineering/FaradAI/tree/master</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b29cfeaf5423" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/faradai-giving-coding-agents-a-smaller-room-b29cfeaf5423">FaradAI: Giving Coding Agents a Smaller Room</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working the Qabalistic Tree of Life (Part 1): The Veils — A Conceptual Introduction]]></title>
            <link>https://medium.com/the-working-crucible/working-the-qabalistic-tree-of-life-part-1-the-veils-a-conceptual-introduction-780f7249ee53?source=rss-5a6532771ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/780f7249ee53</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[metaphysics]]></category>
            <category><![CDATA[kabbalah]]></category>
            <category><![CDATA[spiritual-practice]]></category>
            <category><![CDATA[mysticism]]></category>
            <dc:creator><![CDATA[Josiah B]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 03:46:33 GMT</pubDate>
            <atom:updated>2026-01-24T16:11:01.345Z</atom:updated>
            <content:encoded><![CDATA[<h3>Working the Tree of Life: The Veils — A Conceptual Introduction</h3><h4>Creating Structure Around Unknowing Without Dogma</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZa2u5fiTOWB9kWQIEaK-A.png" /><figcaption>Cosmic Veils &amp; The Tree of Life</figcaption></figure><p><em>Part 1 of a series on understanding and working with the Qabalistic Tree of Life.</em></p><h3>Introduction to the Tree of Life and This Series</h3><p>I wanted my first series in <em>The Working Crucible</em> to offer a way of structuring reality without imposing dogma, something that clarifies experience rather than suppressing it.</p><p>You know. The good stuff.</p><p>My deconstruction from organized, exclusivist religion started with philosophical Taoism, which turned out to be excellent for demolishing structures I was white-knuckling long after they’d stopped working. But I eventually hit a problem: it turns out I need structure.</p><p>Not in a “please build the ark for me” way, but in a “I would like my own, customizable Lego ark” way.</p><p>Enter Qabalah.</p><p>Central to Qabalah is the Tree of Life, and here’s what’s great about it: it’s a tree. It’s organic. It grows. Parts die and return to the soil. New buds sprout. It can be pruned, and what’s pruned can be composted, or turned into biochar.</p><p>But it’s also structured: geometric, categorical.</p><p>What I’m getting at is this: the Tree doesn’t cage experience. It crystallizes it, takes the weird mystical stuff that happens to you and gives it coordinates. It turns insight into something you can actually use instead of just going “huh, that was strange” and then moving on with your life.</p><p>It helps you see what serves, what needs to be permitted to die off naturally, and what needs to be cut away and consciously processed or burned.</p><p>The Qabalistic Tree of Life turned out to be a natural fit.</p><p>As a map of emanation, the Tree has ten (or eleven) primary categories: the ten Sephiroth, plus Da’at (Knowledge — often treated as a ‘hidden’ sephirah or a non-sephirah) if you include it. However, as a map of experience (what you’ll actually navigate in practice), it’s more like 11–14, because the veils aren’t just theory. They’re phenomenological conditions you can learn to recognize when they occur. You can’t force them, but you can cultivate the circumstances that make it harder to miss them. Once recognizable, they become orientations you can work from, rather than states you try to enter.</p><p>The exact count depends on whether you include Da’at, and whether you treat the veils as one thing or three. The point isn’t numerical purity. The point is that the system is flexible enough to hold paradox, but concrete enough to actually use.</p><p>That’s why this felt like the right starting place for the publication.</p><p>Beginning with Taoist-style paradox and unknowing would be more aligned with my philosophical comfort zone, but it’s also abstract as hell, and harder to bring down into practical, embodied application.</p><p>So we’ll start with something more grounded.</p><p>…except we’re actually starting with the pre-manifestation component of the Tree: the apophatic veils.</p><p>I know. I just said I didn’t want to start with abstract unknowing.</p><p><em>How do I justify this? *drums fingers on the table*</em></p><p>Well… I’m going to do some hand-waving and just say… what we’re doing here is using the Tree of Life to create structure around unknowing. So we’re starting with the unutterable but in a structured way, because the inconceivable is where mysticism lives and bringing some loose form into it enables us to bring it down to earth and integrate mystical experiences practically.</p><p>We’re learning how to recognize when we’re in it, when it would be helpful to create space for recognition to emerge, and how to remain oriented in that recognition without getting lost or thinking we’ve gone insane.</p><p>Structure and spaciousness, working together.</p><p>Like jazz, but for your spiritual life.</p><p>This is Part 1 of a two-part exploration. Here, we’ll work through the conceptual and phenomenological territory of the veils — what they are, how to think about them (or how to stop trying). Being able to distinguish Ain from Ain Soph from Ain Soph Aur matters because each one changes what’s available to you in practice: what moves you can make, what stabilizes you, what deepens the work. In Part 2, we’ll explore practical applications, daily contemplative practices, and personal accounts of working with these states.</p><p>(Don’t worry, if the paradoxes get overwhelming, there are simpler handholds at the end.)</p><p>Let’s begin.</p><h3>The Qabalistic Veils: Ain, Ain Soph, Ain Soph Aur</h3><h4>What comes before the beginning?</h4><p>Before form. <br>Before number. <br>Before even the intuition of “before.”</p><p>Wait, how can I even say “before the concept of before”? Stay with me by contemplating on the paradox: the first movement of the Tree of Life isn’t a thing, it’s a <em>withholding</em>, an absolute negation without denying existence, a reverent refusal to let the Absolute collapse into something you can wrap your mind around and file away. Qabalah names this mystery through three veils; these are not as stages unfolding in time (there is no time as either concept or “thing”), but as three different angles on the same unutterable ground.</p><p>Think of them as three ways of saying “you can’t say this.”</p><h4>Ain: Nothing</h4><p><em>Ain</em> means <strong>Nothing</strong>. Not “empty box waiting for stuff.” Not “the peaceful happy-place void you sink into during meditation.”</p><p>Absolute. <br>Uncompromising. <br><strong>No-Thing.</strong></p><p>Ain is more primordial than spacetime itself… primordial to the point of being not primordial… but not, not primordial… but not even being… err… not, not being either… *<em>cough</em>*.</p><p><strong><em>This is harder than I thought</em></strong>.</p><p>Let me try it this way <em>(puts on thick-rimmed glasses and thinking cap)</em>:</p><p>Spacetime bends under mass and energy. Ain doesn’t bend because there’s nowhere to bend <em>into</em>, and also “bend” itself is a concept and action applied to “things”. It’s not affected by creation, interaction, or curvature.</p><p>It’s not a container. Containers hold “things” and contain “space.” Ain does neither.</p><p>It’s not potential waiting to actualize. That’s still assuming there’s a “waiting” and an “actualizing” on deck somewhere.</p><p>It’s not even absence in the way you normally think about absence, because absence itself is defined by presence, by what’s lacking. Ain doesn’t lack anything because there’s no framework where “lacking” makes sense yet.</p><p>Still with me? You said “yes”? …Oh my. Deep breath. Neither of us has this, and we’re going on anyway…</p><p>Ain is the condition foundational to <em>and</em> independent from the possibility of differentiation. It’s not void <em>within</em> something. It’s the absence of all frameworks that would make “within” mean anything at all.</p><p>And this might make you say “This is meaningless!” or “What nonsense!” But hah, I’ve got you there too, because there’s no meaning to “less” and no sense to “non”.</p><p>Getting it?</p><p>If so, remember: there’s <em>No-Thing</em> to get!</p><p>No space. No time. No energy. No reference point. Silence before silence. The off-switch before electricity was invented.</p><p>If you’re trying to picture this, you’re already too late. Ain is what’s left when you stop trying to picture anything at all.</p><p>Ain’s not something you arrive at, it’s that which remains when arriving dissolves.</p><p>If you walk away with one (no)thing from this section, it’s this: Ain is No-Thingness as absolute negation of all cosmic manifestations.</p><h4>Ain Soph: Without End</h4><p>If Ain is negation, <strong>Ain Soph</strong> is <em>limitlessnes</em>s.</p><p>You might notice the term <em>Ain</em> is still there. Yep, still there! Because each veil includes and transcends the previous; the veils build on each other perceptually, in this case, No-Thingness perceived as <em>boundless</em>. Remember, we’re using concepts to point toward the recognition of the Not… No-Thing… Thing… (this keeps getting messier, doesn’t it?).</p><p>Ain Soph is everything Ain is… and isn’t… and isn’t not… but now we’re approaching it from the angle of <em>infinitude</em>. <em>Boundlessness</em>. <strong><em>Without end</em></strong>.</p><p>Let me try to explain, though I’m already feeling the floor tilt:</p><p>No beginning. Because “beginning” is a boundary, and there are no boundaries here.</p><p>No end. Because “ending” is also a boundary, and we just said — no boundaries.</p><p>No edges. No shores. No “here” versus “there.”</p><p>But here’s where it gets weird (weirder?): Ain Soph isn’t sterile. It’s not a blank infinite void that swallows everything into nothing. It’s more like… <em>(stares blankly into space for a moment, struggling to return from the void)</em> …featureless fullness. Infinite capacity that hasn’t expressed anything yet but also isn’t holding back.</p><p>Think of it this way: Ain says “there is nothing.” Ain Soph says “there is no end to the nothing.” Somehow that makes it everything. Not “everything” like, “lots of things,” rather, <strong>everything in the sense of… infinite <em>capacity</em> that does not actualize</strong>.</p><p>I know, this paradox isn’t landing either, is it? Of course not… there’s No-Where to land… Let’s try another approach…</p><p>Still No-Thing. Still utterly formless. But now conceived as infinite boundlessness rather than pure erasure. Here, No-Thing stops being a wall you hit and becomes something oceanic: shoreless, featureless, expansive… weirdly pregnant rather than vacuous. You can’t grasp it, can’t measure it, can’t contain it. But you also can’t dismiss it as “just emptiness.”</p><p>It’s the womb of infinitude. <br>Absolutely pregnant with potential. <br>Expressing exactly none of it yet.</p><h4>Ain Soph Aur: Limitless Light</h4><p>Take a deep breath. No, seriously, we both need it.</p><p><em>A quick note before we dive: I’m about to use a lot of temporal language: ‘first,’ ‘threshold,’ ‘before,’ ‘emerges.’ This is because English doesn’t give us better tools. These aren’t events happening in sequence. They’re angles of approach, like looking at a crystal from different sides. The veils don’t unfold in time; they’re perspectives on what’s prior to time itself. Keep this in mind as we go.</em></p><p>And now the plunge…</p><p><em>Ain Soph Aur</em> is <strong>Limitless Light</strong>.</p><p>I can hear you thinking “Finally, something tangible that I can picture, light!” Erm, no, not quite.</p><p>This isn’t light like you know light, but Light as in Eternal Apophatic Light. Not light that illuminates objects (there are no objects yet). Not light you can see with eyes (there are no eyes). Not even “light” in the physics sense, because there’s no spacetime for it to wave within or speed through.</p><p>If Ain was strange, and Ain Soph stranger, then Ain Soph Aur pushes that strangeness to its limit.</p><p>This realm is pure, unconditioned radiance. Luminosity without contrast. Dawn without a horizon or a Sun to break over it.</p><p>Can you picture this? No you can’t. Remember? This is unsee-able Light. Let’s try it from this angle, even though… there aren’t any angles…</p><p>Imagine holding a lamp in a dimensionless room. No walls. No air. No space for the beams to travel through. And here’s where I can hear the fuse bursting in my own brain even, no lamp either. Did you notice how I didn’t say anything about “turning on” the lamp? Yeah, that’s on purpose, because that doesn’t make sense, either. The Light just is per its Eternal Nature.</p><p>Okay, is this really light??? What ARE we getting at, here?</p><p>Light not as thing nor as event. Light as radiance being radiant within, or even <strong><em>as</em></strong> Boundless No-Thingness (<em>Ain Soph</em>, don’t forget to keep the <em>Soph</em>, you see? <em>CAN</em> you see??).</p><p><strong>Absolute.</strong><br><strong>Boundless.</strong><br><strong>Luminous.</strong><br><strong>No-Thingness.</strong></p><p>If Ain is the silence before the first breath, and Ain Soph is the lungs’ infinite capacity, then Ain Soph Aur is the <em>inhale</em> — movement without shape, the first tremor of expression that isn’t expressing anything.</p><p>It’s like the moment right before a wave forms in the ocean. Not the wave. Not even the swell. Just the potentiality of movement, luminous and present, but not doing anything.</p><p>Stillness that somehow contains motion. Motion that somehow remains still. <em>(I did warn you that this was especially paradoxical…)</em></p><p>Ain Soph Aur’s differentiator could be called the inclination towards <em>tendency</em>. Not will or action. Not creation. More of a… directional quality, like the Ground of All Being leaning without moving.</p><p>This effortless not-quite-leaning and actionless intent is the threshold where the Tree of Life (which attempts to categorize all of cosmic manifestation) can emerge.</p><p>Ain Soph Aur is the apophatic soil through which differentiation <em>could</em> happen, yet remains eventless. No <em>happen</em> happening, therefore no differentiation. Kind of like a screen before a movie starts: no projector, no theater, and the screen itself is made of Light.</p><p>If that makes no sense, good. That’s exactly the point.</p><p>Light spilling from No-Where, bathing boundless No-Thingness in brilliance, as a sun with no moon to reflect it and radiance with no cosmos to receive it.</p><p>From here the foundational ripples of cosmic structure arise. The first contraction toward cosmic creation. The first precondition from which Kether (The Crown and first sephirah, the first point of emanation) emanates.</p><p>This is where the <em>tzimtzum</em> (in Lurianic Kabbalah, the primordial ‘contraction’ that makes space for manifestation), creates space for Kether to emerge as the first point within the Light.</p><p>But here in Ain Soph Aur, we aren’t there, yet. We’re currently resting in the pre-manifestation paradox of Illuminated, Aware, No-Thingness. Radiance that reveals No-Thing. The Illuminated boundless expanse which is the precondition for “here” and “there”.</p><p>Rest here, if you can.</p><p>In the Light that has No-Where to land and No-Thing to illuminate…<br>…Yet, from which all “here” and “there” will eventually contract into being.</p><h3>For Those Needing Handholds</h3><p>Sometimes, it helps to hold all three at once:</p><p><strong>Spatially</strong></p><ul><li><strong>Ain:</strong> no space, no reference</li><li><strong>Ain Soph:</strong> space as boundless, featureless capacity</li><li><strong>Ain Soph Aur:</strong> space as luminous expanse, the first glimmer of “here”</li></ul><p><strong>As Breath:</strong></p><ul><li><strong>Ain:</strong> silence before breath</li><li><strong>Ain Soph:</strong> the lungs’ vast potential</li><li><strong>Ain Soph Aur:</strong> the first inhale, formless but alive</li></ul><p><strong>Next:</strong> Practical applications and personal accounts of working with the veils.</p><p><em>This is Part 1 of the “Working the Tree of Life” series. Part 2 will cover practical applications and personal accounts.</em></p><p><em>Follow The Working Crucible for the full series on the Qabalistic Tree of Life.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=780f7249ee53" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-working-crucible/working-the-qabalistic-tree-of-life-part-1-the-veils-a-conceptual-introduction-780f7249ee53">Working the Qabalistic Tree of Life (Part 1): The Veils — A Conceptual Introduction</a> was originally published in <a href="https://medium.com/the-working-crucible">The Working Crucible</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating Scala Metals with Doom Emacs using LSP on Ubuntu]]></title>
            <link>https://medium.com/codex/integrating-scala-metals-with-doom-emacs-using-lsp-on-ubuntu-27acbbde77b8?source=rss-5a6532771ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/27acbbde77b8</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[doom-emacs]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[emacs]]></category>
            <category><![CDATA[scala]]></category>
            <dc:creator><![CDATA[Josiah B]]></dc:creator>
            <pubDate>Mon, 10 May 2021 19:32:14 GMT</pubDate>
            <atom:updated>2021-05-15T19:26:06.099Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2VXIJv14CGkXMoSxUilTYg.gif" /></figure><h3>I. Why Yet Another HowTo For Integrating Metals with Doom Emacs???</h3><p>A quick web-search will quickly reveal that there’s at least two blog posts on this already <em>(the ones I found were from </em><a href="https://www.matfournier.com/2019-10-05-scalaemacs/"><em>2019</em></a><em> and </em><a href="https://siawyoung.com/blog/code/2020-02-06-installing-metals-emacs-doom"><em>2020</em></a><em>)</em>. So… why am I creating another one? Believe it or not, despite the fact that both of these blog posts were incredibly useful in helping me to get up and running with Metals as the language server backend for Scala development in Doom Emacs, I did not find that either article covered everything necessary for me to be able to get things set-up properly on my machine without doing a fair amount of my own troubleshooting. In an attempt to save some people from some of the frustration I’ve had to go through I, therefore, decided to write this blog post in an attempt to fill in some more of the gaps.</p><p>For sections that I believe many of you may want to skip, I’ll leave you a nice <em>TLDR</em> notification at the beginning indicating what the section contains and why some of you readers may not care to read it.</p><h3>II. A Few Notes About this Article’s Scope</h3><p><em>(TLDR: this is mostly disclaimers. Please skip it if you don’t care)</em></p><ul><li>I only run Ubuntu 20.04 based Linux distros, currently. As such, this post only covers material that pertains to getting Metals integrated with Doom Emacs through the LSP on Ubuntu.</li><li>To help avoid needing to mess with the differences between different flavors and derivatives of Ubuntu 20.04, everything in this article will be done through the CLI. This is because the CLI is relatively consistent across Ubuntu-based distros when compared to the GUI desktop enviornments which could be anything from vanilla XFCE, Gnome, KDE, Maté, etc. to some customized version of any of those (for example, Pop!_OS ships with a fairly customized version of Gnome).</li><li>I will be covering my experience in getting this working, only. I have not done, nor do I plan to do, the leg-work necessary to tinker around and try to find all the things that could go wrong in Ubuntu 20.04 when trying to configure Doom Emacs to use Metals as the LSP backend.</li><li>For those of you that use Chemacs, you may be interested to know I use Chemacs 2 to switch between Doom Emacs, Spacemacs, and vanilla Emacs. As such, the instructions in this article will work even if you installed Doom Emacs to its own directory and not straight into the ~/.emacs.d/ directory.</li><li>I will be using this article for my own reference. Therefore, I will most likely be keeping it up-to-date according to what I need to work effectively as a Scala developer so long as I’m working regularly in Scala and still using Doom Emacs as my primary editor for Scala development. <strong><em>However, I make no promises or commitments to keep this article up-to-date in any case.</em></strong> I reserve the right to neglect updating this article, switch to another editor (like Vim or VSCode), stop working on Scala for a while, etc. without notice.</li></ul><h3>III. Installing Metals</h3><p>I installed Metals using Coursier via the following process:</p><h4>1. Install Oracle JDK</h4><p><em>(TL;DR; Feel free to skip this first step if you know you already have a workable and properly configured JDK installed on your system. As for me, I had Open JDK 11 already installed, but JAVA_HOME was not set properly, so I had to follow the steps in the list, below)</em></p><p>You will need a JDK for this to work (hopefully you don’t find this to be unexpected since Scala is a JVM language, so one would rightly expect Metals and potentially even Coursier to be using a JDK in its analysis of Scala files). I installed Open JDK 11 and then followed the <a href="https://www.wikihow.com/Set-Up-Your-Java_Home-Path-in-Ubuntu">instructions here</a> to set the JAVA_HOME environment variable. However, so that this article can stand on its own, I&#39;ll copy the stepwise instructions from the aforementioned article below (Note that these instructions are for Ubuntu, you may need to do your own digging to figure out how to do this for a different Linux distribution if that&#39;s your need).</p><ol><li>In a terminal window, run sudo su.</li><li>Run updatedb to update your system&#39;s database</li><li>Run locate openjdk to find your Java installation. It&#39;s a bit of an art parsing through the wall of text this command outputs, but the instructions on the WikiHow site served me well - look at what base directory/prefix most of the outputs return, and use the majority output. For me, that was /usr/lib/jvm/java-11-openjdk-amd64.</li><li>To permanently set $JAVA_HOME to this, add the line JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 (or whatever your installation path was) to /etc/environment. If you don&#39;t have root access on your machine, you may alternatively add this to your shell&#39;s RC file (for example, ~/.bashrc).</li><li>After this, you may log out of your session and back in again, or alternatively sourcing your shell’s RC file would work if you took that approach in hte previous step (e.g. source ~/.bashrc).</li></ol><h4><a href="https://get-coursier.io/docs/cli-installation"><strong>2. Install Coursier</strong></a></h4><p>I found I had to follow the official site instructions to install Coursier and mostly ignore what Siaw Young’s article told to do.</p><pre># first, let&#39;s check where this redirects to curl -sI https://git.io/coursier-cli-&quot;$(uname | tr LD ld)&quot; | grep Location<br># Should return something like &quot;Location: https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux&quot;</pre><pre># Assuming all is good, proceed with the install<br>curl -fLo cs https://git.io/coursier-cli-&quot;$(uname | tr LD ld)&quot;<br>chmod +x cs<br>./cs install cs<br>rm cs</pre><h4>3. Install Metals</h4><p>Next, you’ll want to use Coursier to install Metals. I used the following command to perform the installation:</p><pre>sudo cs bootstrap \<br>--java-opt -Xss4m \<br>--java-opt -Xms100m \<br>--java-opt -Dmetals.client=emacs \<br>org.scalameta:metals_2.12:0.10.1 \<br>-r bintray:scalacenter/releases \<br>-r sonatype:snapshots \<br>-o /usr/local/bin/metals-emacs -f -v -v -v</pre><p><a href="https://siawyoung.com/blog/code/2020-02-06-installing-metals-emacs-doom#installing-metals-emacs-with-coursier">The 2020 article</a> indicates that there used to be a bug which made it more difficult or impossible to install Metals via the Coursier CLI launcher for Linux. This issue seems to have been fixed by the community, I did not run into the problem Siaw Young did.</p><h3>IV. Installing/Updating Doom Emacs</h3><ol><li>Of course, make sure you have a recent version of Emacs installed. I’m using Emacs version 28.0.50 on Pop!_OS 20.04 LTS, which is based on Ubuntu 20.04 LTS.</li><li>From here, I have installed <a href="https://github.com/plexus/chemacs2">Chemacs 2</a> to my ~/.emacs.d directory as instructed in the Chemacs 2 README.</li><li>Next, I cloned <a href="https://github.com/hlissner/doom-emacs">Doom Emacs</a> into ~/.doom.emacs.d using the <a href="https://github.com/hlissner/doom-emacs#install">install instructions in the README</a><br><em>NOTE:</em> Actually, when I started this process of integratiing Metals with Doom Emacs, I had already had Doom Emacs and Chemacs 2 installed as described above and I found myself in need of actually updating Doom Emacs. When I tried doom upgrade however as specified in the <a href="https://github.com/hlissner/doom-emacs#install">README</a>, I kept running into errors such as <a href="https://github.com/hlissner/doom-emacs/issues/4317">this one</a>. As it turned out, I was able to fix the problem by running the following git commands to force a fresh pull from the Doom Emacs remote:<br>git fetch<br>git reset --hard origin/develop<br>./bin/doom install<br>YMMV, and you may find that you may need to wipe your ~/.doom.emacs.d directory and do a fresh clone of the Doom Emacs git branch or tag into that directory depending how how messy or divergent your setup has become over time.</li><li>You can then tell Chemacs 2 to switch between the Doom and vanilla Emacs versions by adding the following to your ~/.emacs-profiles.el</li></ol><pre>((&quot;default&quot; . ((user-emacs-directory . &quot;~/.emacs.d&quot;)))<br> (&quot;doom&quot; . ((user-emacs-directory . &quot;~/.doom.emacs.d&quot;))) <br>)</pre><h3>V. Configuring Doom Emacs (a.k.a. the easy part)</h3><ol><li>Finally, you’ll want to configure Doom to use lsp. This was actually fairly straightforward. You can do this by opening ~/.doom.d/init.el (this file was created by doom install, earlier) and in the (doom! :input section/scope add lsp and (scala +lsp) to the list of plugins, there.</li><li>Go back to ~/.doom.d/bin/ and run ./doom sync to make sure the new layers your configured in the previous step get downloaded and installed.</li><li>Restart Doom Emacs and you should be good to go for having Doom Emacs use Metals as the LSP backend for analyzing Scala code.</li></ol><h3>VI. Closing Remarks</h3><p>All in all, I did not find the installation and configuration of Doom Emacs to use Metals as the LSP backend for Scala too difficult, but there were some gotchas that made it a bit less straightforward than just installing the Metals application and editing the Doom config files to use it. I hope by posting this article, here, somebody else’s time can be saved and their life can be made just a bit easier by having this small instructional article, here.</p><p>If you benefited from this article, please give it a clap, or vote, or thumbs-up depending on the platform you encounter this on.</p><p><em>This article was originally posted by me </em><a href="https://steemit.com/scala/@josiah-b/integrating-scala-metals-with-doom-emacs-using-lsp-on-ubuntu"><em>here on Steemit</em></a><em> and has been replicated to </em><a href="https://write.as/josiah-b/integrating-scala-metals-with-doom-emacs-using-lsp-on-pop-_os-ubuntu-20-04-lts"><em>Write.as</em></a><em> and </em><a href="https://dev.to/josiah14/integrating-scala-metals-with-doom-emacs-using-lsp-on-pop-os-ubuntu-20-04-lts-541f"><em>Dev.to</em></a><em>, also, as a redundancy measure. Minor edits have been done, here, due to Medium’s limited support for things like nested lists and code blocks.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27acbbde77b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/integrating-scala-metals-with-doom-emacs-using-lsp-on-ubuntu-27acbbde77b8">Integrating Scala Metals with Doom Emacs using LSP on Ubuntu</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Noob’s Prelude to Hadoop: Part 1 — What is “Hadoop”???]]></title>
            <link>https://josiah14.medium.com/the-noobs-prelude-to-hadoop-part-1-what-is-hadoop-ca42bcffdda2?source=rss-5a6532771ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca42bcffdda2</guid>
            <category><![CDATA[mapreduce]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[hdfs]]></category>
            <category><![CDATA[yarn]]></category>
            <category><![CDATA[hadoop]]></category>
            <dc:creator><![CDATA[Josiah B]]></dc:creator>
            <pubDate>Mon, 29 Jan 2018 10:52:21 GMT</pubDate>
            <atom:updated>2019-06-09T16:23:48.429Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Noob’s Prelude to Hadoop: Part 1 — What is “Hadoop”???</h3><p><em>See the </em><a href="https://steemit.com/technology/@josiah-b/the-n00b-s-prelude-to-hadoop-part-1-what-is-hadoop"><em>original article on Steemit</em></a><em> for better formatting and links to the references used to write this article.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*rB0EBRC54CRTujIjfYxC7g.jpeg" /></figure><h3>The Road Ahead: What This Series Will Cover</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*UZewhA9c9JfY06miV-V4Lw.jpeg" /></figure><p>Any blog on Hadoop needs at least a brief introduction to the Hadoop platform. However, my exceedingly great early middle-aged wisdom has guided me to examine this platform from a broad perspective with some thoroughness. There is a growing root system of misinformation taking hold out on the World Wide Web. While Hadoop is not the sole elixir for every data related problem that some people (and vendors) would have you believe, it is by no means a one-trick pony, either. There is also a mysterious fog of confusion hanging over the collective mind of the Internet regarding which technologies are part of and related to Hadoop. I am, therefore, taking the time to direct a beam of sunlight into the fog to dispell these myths and illumine you all with an essential awareness of the technologies that exist, how each of them relates to Hadoop, and the specific purpose each technology serves.</p><p>This four-part series will clarify what Hadoop is, when you should and should NOT use it, and the fundamental techniques for grokking Hadoop development in a large IT organization.</p><ul><li><strong>Part 1: <em>What is “Hadoop”???</em></strong><br> This very blog post is the first part of this series. In hardly any time at all, this article will be leading you through the history and motivations that birthed the Hadoop platform into the world. I will also discuss the four technologies make up the nucleus of Hadoop and the purpose each one serves.</li><li><strong>Part 2: <em>Touted Virtues and Hidden Vices</em></strong><br> We will mountaineer up the magnificent peaks of Hadoop’s most notable merits and take in the view of all it has made possible. Then, we’ll descend into valleys of its most dismal deficiencies and observe how it becomes an obstacle when applied in the wrong places.</li><li><strong>Part 3: <em>The Wider Landscape</em></strong><br> We’ll take an expedition through some of the principle Hadoop-related technologies. I will group them into eight main categories and compare the tools and frameworks that are categorized together against each other.</li><li><strong>Part 4: <em>Herding the Horde</em></strong><br> All of what we have learned up to this point in the series will be brought together to examine how the characteristics of the broader ecosystem of Hadoop-related tools can make it wild and unwieldy in a large IT organization. I will present a few suggestions on organizational structure and development strategies to help you tame the horde within a multi-team environment.</li></ul><h3>When I was Your Age: A Brief History of the Motivations Behind Hadoop</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*jonnmPLvwMwd4N7snU7V4Q.jpeg" /></figure><p>At the turn of the millennium, the announcement that Google was the largest search engine in the world crowned it king of the hill in Silicon Valley. As its first sovereign act, Google bestowed upon the world two academic papers, “ <a href="https://research.google.com/archive/gfs.html">The Google File System</a>” and “ <a href="https://research.google.com/archive/mapreduce.html">MapReduce: Simplified Data Processing on Large Clusters</a>”, which contain the secret sauce for how they managed to efficiently store and index more of the Web than anybody else.</p><p>Of course, you could imagine, this event was all the rage in the tech community. It wasn’t long before a newly established project to create a scalable and extendable web crawler, called <a href="https://nutch.apache.org/">Apache Nutch</a>, picked up those papers and used them to create their own filesystem and data processing framework for analyzing boundless quantities of web documents. This filesystem and data processing framework became the independent project named “Hadoop” in 2006. The name “Hadoop” originates from engineers behind Nutch deciding to name it after the stuffed, yellow elephant belonging to the son of the Yahoo! employee, Doug Cutting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*x_o8eXqePAbGsncj.png" /></figure><p>Hadoop has been a highly collaborative project from the start. Not only Yahoo! and Google, but also Oracle, Facebook, and academics like Mike Cafarella have given their sweat, blood, and tears to the project since its inception. The above graphic from 2012 illustrates how quickly the Hadoop project amassed a following. Almost all of these companies had made significant contributions to the Hadoop code base by 2011. It’s noteworthy that most of these companies would share a similar problem to the one Google was trying to solve in becoming the Master of All Search Engines: archiving and indexing massive amounts of web data.</p><p>Due to its great number of participants, many related side-projects have spawned-off of the Hadoop Core. Each new twist to the problem of big data has resulted in a new programming framework or cluster management tool. The collective contributions from a growing number of companies, academics, and enthusiasts have created the increasingly expanding Hadoop ecosystem that we have, today.</p><h3>What’s Part of the Core: Hadoop’s Four Central Technologies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*YWx_izfXSQPdJw_d.jpg" /></figure><p>No matter what anyone has told you or what you have read, Hadoop, itself, is made up of only the original three technologies created from the Google research papers: HDFS, MapReduce, and Hadoop Common; and YARN, which came a bit later due to the need for a cluster resource negotiator[ <a href="https://en.wikipedia.org/wiki/Apache_Hadoop#Difference_between_Hadoop_1_vs_Hadoop_2_(YARN)">6</a>]. Many other projects exist that relate to Hadoop and integrate with one or more of its “core four”, but DO NOT BE FOOLED; the projects getting the most attention, in general, do NOT <em>replace</em> Hadoop ( <a href="https://www.quora.com/Will-Spark-overtake-Hadoop-Will-Hadoop-be-replaced-by-Spark">see this Question on Apache Spark as an example of the widespread misunderstandings going on</a>). The ecosystem may change and morph, but it will not “get replaced” or “go away” anytime soon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*4VPbBF6Up8I3lRkBpLgwHg.jpeg" /></figure><p>The larger Hadoop world is a little ambiguous; it can be a bit difficult to determine which technologies are part of the Hadoop ecosystem and which are separate from it. The way I determine whether a technology could be considered related to Hadoop is whether it’s created to integrate or interface directly with one of Hadoop’s core four or if it organically grew out of the efforts of the Hadoop community such that it’s provided by a Hadoop vendor.</p><p>An example of a project considered to be part of the Hadoop ecosystem is <a href="https://spark.apache.org/">Apache Spark</a>. It’s part of the larger Hadoop world because it was first designed with the intent to interface with HDFS and YARN, even though you don’t <em>have</em> to use either one with Spark. It’s also not necessary for a Hadoop technology to integrate with all of the four core Hadoop projects. For instance, Spark isn’t typically integrated with MapReduce since it’s capable of replacing MapReduce as an alternative data processing framework. Apache Spark is a result of the Hadoop ecosystem growing and evolving over time to meet the changing and growing needs of IT organizations with Big Data.</p><p><a href="https://hpccsystems.com/">High-Performance Computing Cluster (HPCC)</a> is an example of a technology that is <em>not</em> part of the wider Hadoop ecosystem. HPCC predates Hadoop and could now be considered a competitor to Hadoop. The people behind HPCC even claim several advantages over Hadoop. Unlike the other Hadoop-related projects, HPCC aims to be an alternative data platform, and that sets it apart from Hadoop.</p><p>If you are ever confused about whether a tool or framework is part of the larger Hadoop ecosystem, a good thing to do is check out the websites of Hadoop vendors such as <a href="https://www.cloudera.com/products/open-source/apache-hadoop/key-cdh-components.html">Cloudera</a>, <a href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_release-notes/content/comp_versions.html">Hortonworks</a>, and <a href="https://mapr.com/products/whats-included/">MapR</a> to see if any of them include the technology in their platform or are invested in it in some way (such as funding the project or contributing code to it).</p><p>We’ll explore more Hadoop technologies in “Part 3: <em>The Wider Landscape</em>”. For now, let’s take a more detailed look at each of the core four.</p><h3>HDFS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*jX0zFeZy8zZEL9QE.jpg" /></figure><p>HDFS stands for “Hadoop Distributed File System”. If I were forced to pick the essential component of Hadoop, this is it. Most of the tools and frameworks surrounding Hadoop are Hadoop-related because they interact with or manage HDFS in some way. HDFS abstracts all of the storage space on the entire cluster of servers Hadoop is installed on and represents it as a single file system. Its most significant advantages are its ability to speed up massive data imports and exports by spreading the disk IO over the entire cluster’s disk array, and the way it redundantly stores the data across multiple nodes to provide resiliency against failures. HDFS is optimized for the storage and batch-processing of files which are each at least as large as several gigabytes, if not terabytes.</p><p>The basic way HDFS works is that it is made up of 3 main components: Clients, Namenodes, and Datanodes. The clients are what are used by the user to tell HDFS what to do (mostly read or write operations). The Datanodes are what actually house the data stored on HDFS. There are typically very many Datanodes since HDFS is designed to store massive volumes of data in a replicated, redundant manner. The Namenodes hold the references to and metadata about the data on the Datanodes.</p><p><strong>Warning</strong></p><p>There is only ever one active Namenode at any given time, but it’s a common and most highly advised practice to have at least one or two backup Namenodes ready to go in case the primary one goes down. Since the Namenode holds the references to the data on the Datanodes, if it fails, you lose all of its references to the data. Without a backup, there’s no way to recover the data on the Datanodes.</p><p><strong><em>Update</em></strong>: Hadoop 3 adds in the ability to have multiple, federated Namenodes to facilitate better resiliency and easier horizontal scaling of the service. <a href="https://hadoop.apache.org/docs/r3.0.3/hadoop-project-dist/hadoop-hdfs/Federation.html#Multiple_Namenodes.2FNamespaces">Official Hadoop Docs</a></p><p>In Part 2, we will cover in more detail the advantages and disadvantages of this design. If you wish to dig into the details of how HDFS works and what it’s architecture is like, the <a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HdfsDesign.html">official documentation</a> on HDFS’s architecture is the best place to start.</p><h3>MapReduce</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*jNNgQwliUqxiatwpK1yaew.png" /></figure><p>MapReduce is a low-level Java programming framework for writing services and apps that process and perform analytics on data in HDFS. MapReduce may also be used to write jobs that import and export data into and out of HDFS. What makes this processing framework special from others is that it will intelligently spread your computations over the entire cluster to take maximum advantage of the available resources across all of the available servers. The MapReduce framework also works with HDFS to try and move the computations developers write in it to the data each requires. This is done because it is assumed that, since HDFS is optimized for storing insane amounts of data, it would be less expensive to move the computation to the data than to move the data to the computation.</p><p>At a high-level, MapReduce is made up of 4 processing stages which are always performed in order.</p><ol><li><strong>Splitting</strong>: Split the data and distribute it across the Datanodes in the cluster.</li><li><strong>Mapping</strong>: Perform a computation over the data on each Datanode that doesn’t require sending the data over the network to be shared with another Datanode. Most of the time, this computation is something that only works on each record of data in isolation, but you can also perform calculations that aggregate the data per Datanode in some way. These sorts of aggregations are normally done as a preprocessing step to improve performance by giving the Reducers in the last step less work to do.</li><li><strong>Shuffling</strong>: Group the data so that each node contains all of the data it needs to compute the final results. This often requires moving the data over the network to make sure each reducer has the entire dataset that it needs to perform its aggregation.</li><li><strong>Reducing</strong>: Reduce the data on each node into the final result.</li></ol><p>The Split and Shuffle stages often use a baked-in default implementation provided by the core MapReduce Java libraries, but a custom algorithm can be provided by the developer, as well. The Map and Reduce steps, however, are always written by a software developer (most often in Java).</p><p><strong>Example</strong>:</p><p>The graphic portrays an example of the Word Count algorithm in MapReduce. This algorithm takes in a document with written text in it and computes how many times each word in the document occurs. The way this works in the MapReduce steps is as follows:</p><ol><li><strong>Splitting</strong>: Randomly partition the dataset to send a roughly equal amount of data to each Datanode in the cluster.</li><li><strong>Mapping</strong>: Transform the document into a <a href="https://en.wikipedia.org/wiki/Multimap">multidict</a> where the keys are the <a href="https://en.wikipedia.org/wiki/Multiset">multiset</a> of each word in the document and the values are the integer 1 for every key.</li><li><strong>Shuffling</strong>: Send the data over the network such that all instances of the same key reside on the same Datanode. Also, perform a partial aggregation of that data such that each key is unique (make the keys a <a href="https://en.wikipedia.org/wiki/Set_(mathematics)">set</a>) and the values are a list of 1s whose length is equal to the number of times the key occurred in the original document.</li><li><strong>Reducing</strong>: Reduce the values from a list of 1s to a single value equal to the sum of all the 1s in that list for each key and output the results.</li></ol><p>It’s worth noting the MapReduce framework is actually an old and very common design pattern used in “function programming” (FP). In big data distributed computing, FP techniques tend to pop-up regularly due to the immutable nature of FP and the difficulty in managing shared, mutable state in highly distributed and concurrent environments (like Hadoop). As a result, I will cover FP topics fairly frequently in this blog in the future.</p><p>If you want to dig deeper into MapReduce and how it works, once again, I refer you to the <a href="https://hadoop.apache.org/docs/stable/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html">official documentation</a>.</p><h3>YARN</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xO-VlkMEus1ycU99l04lMA.jpeg" /></figure><p>YARN stands for “Yet Another Resource Negotiator”. Its main functionality is to provide scalable cluster-wide dynamic resource management, job scheduling, and monitoring. YARN is made up of three daemons which do pretty much what you’d expect from the name: ResourceManager, NodeManager, and ApplicationMaster.</p><p>Specifically, the <strong>ResourceManager</strong> allocates the high-level system resources across Hadoop to each application running on the cluster. <strong>NodeManagers</strong> monitor each piece of work running as part of an application (refered to as a “container” or a “task”) on a particular node and report back to the ResourceManager on their observations regarding the resource usage of each task. The <strong>ApplicationMaster</strong> requests resources from the ResourceManager and assists the NodeManagers in running and monitoring the tasks sent to each node.</p><p>If you are still curious about the finer details on how these three daemons work together in YARN, the <a href="https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/YARN.html">official documentation</a> gives a good overview of the responsibilities for each one.</p><h3>Hadoop Common</h3><p>Hadoop Common is often forgotten about because its presence and use is not as obvious. This project is basically where developers throw modules of code that are “common” across two or all of the other three core Hadoop subprojects.</p><p>All other tools and frameworks outside of the above four, while they may be Big Data or Hadoop-related projects, they are not part of core Hadoop, itself.</p><h3>Continue to Part 2: Touted Virtues and Hidden Vices</h3><p>In the next part of this series, we will explore and compare the aspects of Hadoop’s most considerable advantages and disadvantages.</p><p><em>Part 2 is not ready, yet. Please check back in a few weeks when I will update this post with a link.</em></p><p><em>Originally published at </em><a href="https://steemit.com/technology/@josiah-b/the-n00b-s-prelude-to-hadoop-part-1-what-is-hadoop"><em>https://steemit.com</em></a><em> on January 29, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca42bcffdda2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>