If you can describe your concrete use case, we may be able to help you with what kind of changes should be made where.
Yusaku On Mon, Nov 10, 2014 at 4:30 PM, Yusaku Sako <[email protected]> wrote: > Hi Tim, > > Ambari-web code runs on the browser (it's not server-side JavaScript). > Ambari-web communicates with ambari-server over REST and REST only. > So if you want to log stuff on the server, you need to modify > ambari-server code. > > Yusaku > > On Sun, Nov 9, 2014 at 10:31 AM, Tim <[email protected]> wrote: > >> Srimanth Gunturi, >> >> We have a bash script that we'd like to run during the ambari install >> wizard. I'm trying to add another step to the wizard that can invoke the >> script. I'm not understanding ember as a client-side framework and how >> ambari does things on the server (such as writing to disk). We wouldn't >> submit these changes back to the community since they're oddly specific to >> our setup. >> >> Thanks, >> Tim Schoenheider >> >> 2014-11-08 14:01 GMT-06:00 Srimanth Gunturi <[email protected]>: >> >> > Hi Tim, >> > I was hoping if you could elaborate on the use-case of why Ambari UI >> should >> > access the filesystem? >> > Regards, >> > Srimanth >> > >> > >> > On Sat, Nov 8, 2014 at 11:44 AM, Tim <[email protected]> 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 >> > > >> > > >> > >> https://cwiki.apache.org/confluence/display/AMBARI/Coding+Guidelines+for+Ambari >> > > to acquire and build it. >> > > >> > > Thanks, >> > > Tim Schoenheider >> > > >> > >> > -- >> > CONFIDENTIALITY NOTICE >> > 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. >> > >> > > -- CONFIDENTIALITY NOTICE 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.
