ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srimanth Gunturi <>
Subject Re: Can't require('fs') in ambari-web controllers
Date Sat, 08 Nov 2014 20:01:10 GMT
Hi Tim,
I was hoping if you could elaborate on the use-case of why Ambari UI should
access the filesystem?

On Sat, Nov 8, 2014 at 11:44 AM, Tim <> wrote:

> Hello again,
> I'm trying to do something like "var fs = require('fs')" somewhere in
> ambari-web so that I can write to a file in a controller. Adding it to
> "ambari-web\app\controllers\wizard\step3_controller.js", I get
> Uncaught Error: Cannot find module "fs" from
> "controllers/wizard/step3_controller"
> I get similar errors/exceptions when adding to app.js or installer.js too.
> My question is, how can I either require this module or write to a file in
> one of ambari's controllers?
> Is it likely that something is wrong with my setup/node installation? It
> seems that this should always work.
> I've tried this on a clean ambari-web without any of my changes, following
> to acquire and build it.
> Thanks,
> Tim Schoenheider

NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message