The specific examples you mentioned are clearly Too Broad. They're not answerable without asking for a lot more details about the configuration needs than provided. No other justification is needed to close a question with only that content.
However, it's important to realize that Hadoop is not always off-topic. It clearly falls into software tools commonly used by programmers, so being about Hadoop alone is not reason enough to close it. Questions that are actually about the workings or configuration almost certainly affect programming tasks, so they're on topic.
It's difficult to draw an exact line for what constitutes "programming tasks" and what doesn't. For example, no one complains about questions detailing problems installing Python packages, as this is just something programmers have to do. Strictly speaking, this can only be relevant for configuring the environment before you write any code. So does installing Hadoop count as a programming task, which would allow users to ask questions if they get an error? Since there isn't a clear, objective line, there isn't much point in trying to be strict about it. If it is clear, reasonably scoped, and answerable, leave it alone. At worst, it's also on topic elsewhere and may result in a cross-site dupe.