Saving Worksheets, Queries and Results with Ambari - ambari

​Hello,
I am new to Hive/Hadoop and Ambari. I am using Ambari through IE 11, to connect remotely.
I have found that:
1) Ambari won't save worksheets or queries - it brings up a window with default name, won't allow me to change it, and locks up for hitting either cancel or save.
2) Ror the results, when I select 'save as CSV', it gives an unchageable default worksheet name ('Worksheet_1234'), won't allow me to change it, and doesn't provide the path. When I select to save it to 'hfds', I have no idea of where the results are stored.
Is there any way to save worksheets, and to save the query results to a known location?
Thank you very much!
Barry DeCicco

Related

Snowflake: Worksheet1 was not saved because saving would overwrite new changes on the server

I received an prompt from snowflake reading
*Worksheet1 was not saved because saving would overwrite new changes on the server. Please decide what to do next:
It provides two options,
a) Overwrite Changes
b) Save to new worksheet.
Q: What changes to the server? is there a way to see that? Is this just regarding Worksheets?
Q: What is the safest option, New Worksheet?
I would go with new worksheet, however if you ever loose a worksheet there is a really cool feature that shows all historical worksheets associated with the account/role you are logged into here:
Click on the drop arrow next to the furthest to the right worksheet > Select "Open Worksheet"
All of the worksheets that were closed can be opened again.

MSP resource assignment issue using vba

I am working on a huge set of macros to read workload data from MSP files and Excel files to update a master planning and a resource pool (both MSP).
My Excel files all have same template and list tasks, start dates, end dates and allocated resources and look like this
The task is created by the macro, with Start Date and End Date. This part works fine. Even Outline level works fine.
Macro reads data in Excel's column 12 to get resource names (stored in an array) and cross checks name with names listed in resource pool (stored in a second array ResPoolArr along with corresponding ID).
My issue is that Ta.Assignments.Add ResourceID:=ResPoolArr(RowResPoolArr, 1), Units:=1 returns a 'The resource does not exist' error while I get an effective ID (e.g. ResPoolArr(RowResPoolArr, 1) = 50)
I also tried another way round by using Ta.Resources.Add() but it didn't work either.
Ta.Assignments.Add Ta.id, ResPoolArr(RowResPoolArr, 1) works and solved my issue

Sheet not found via codename

I'm running across and error that appears sporadically. Essentially, a master .xlsm file is used by multiple people to populate data for aggregation. I then use another .xlsm file with macros to pull the data and aggregate it into a single source file.
The code generally works quite well, with one exception:
'define range based on count'
Set rngItemRange = SourceWb.Sheets("Quality").Range(Cells(3, i), Cells((intItemCount + 2), i))
'write concatenated range'
targetwb.Sheets("Raw Data").Cells(pintDest_row, pintCol).Value = concatRange(rngItemRange)
It cannot find the tab "Quality" on some work books (but not all). Okay, maybe someone renamed the tab? checked that, thats not true. One thing that works as a work around: on the open source workbook, when debug throws an error, if i manually click the quality tab, then resume the macro, it will continue.
I also said, okay, well maybe there's some weird character recognition issue, so I started to refer to the sheet by the codename as shown in the vba editor. I experience the same behaviors.
This affects maybe 50% of the workbooks, and I cant find any root cause. I have similar code elsewhere, for different sheets, but this is the only one where i define a range to pass into a function using the "set" command. Again, this only happens sometimes on some workbooks, and i can continue to execute when i manually click on the tab i'm pulling data from.
I'll also add, there is only one workbook open with this sheet name, at any given time, so i dont think it's choking trying to figure which sheet is relevant. Plus sourceWb is a set variable.
Does someone have any clue whats going on? anything to try? solutions? help!
(Forgive any typos, I'm working on a broken thumb right now.)

Excel VBA: Resetting spreadsheet count

I have a excel VBA macro that dynamically generates and deletes spreadsheets based on user input. However, when I open the VBA IDE, it seems that although I am naming my spreadsheets in the subs that create/delete them, the overall count is still increasing.
For example, depending on how far into execution my program is, under the "Microsoft Excel Objects" folder in my current project, the spreadsheets in the current workbook could look something like
Sheet101(Sheet3)
Sheet103(Sheet2)
Sheet104(Sheet1)
Or
Sheet81(Inputs)
Sheet83(Date Adjustment Interpolation)
Sheet84(Pricing)
Sheet85(Comparison)
No matter if I delete the rest of them and add one, it still picks up where the last highest one left off.
I don't know how many times this macro will be run and I'd feel a lot better about putting it out there if I could reset this annoying tally on the number of spreadsheets that have ever been generated, since I don't know for sure where excel will cut me off. Plus it's just annoying.
My Question:
I would like to know how to alter that spreadsheet number, or at least what the relevant object is for doing so.
Thanks!
Thanks to #dijkay s suggestion on code names, I've found some code to accomplish this.
ThisWorkbook.VBProject.VBComponents("Sheet1").name = "test"
Will change the code name of Sheet1 to test, so in the Excel Objects folder, it will appear as test(Sheet1) for example.
This option, however, requires messing around with some trust/security settings in each individual excel client running the macro, which is unsuitable for my purposes, unfortunately. You can also change the value manually by changing the (Name) property directly in the IDE through the properties window.
here are some ideas you can try...
Sheets(x).Name = "Sheet" & x
or (assuming in this example, 'Sheet3' doesn't already exist:
Set Sheet3 = sheets.Add
Sheet3.name = "Sheet3"
This is more cleanup than re-setting
cheers,
Micéal

SSIS hidden sheets as Excel Destination

As occurring more often something simple is not so simple in SSIS (v 2008)
Situation before B.I. came in: data was loaded into linked tables in hidden excel sheets, there were macro's and manual adaptations.
After: Still hidden sheets but we replaced macro functionalities with SSIS and had to unlink the table to get rid of the pop-up when opening the files: "The following data may have been lost: -Table"
Since we unlinked the table (and by consequence deleted the connection) we can't address the hidden sheet anymore via SSIS: Excel Destination. Non-hidden sheets are no problem and are visible.
--> Question: how can you export to a hidden excel sheet?
Since above action the sheet is not visible anymore in the Excel Destination windows, dropbox "name of the excel sheet".
Thanks in advance for any advice!!
L
The trick when the GUI doesn't let you do something in SSIS is to tell it you know what you are doing. ;)
In this case, the drop down does not allow you to select values from a hidden tab. The connection manager points to a Excel file with 2 tabs, Sheet1 and Hidden which is hidden.
It does however allow you to select "Table name or view name from variable" or "SQL Command." This solution will use the variable approach but command should work just as well.
As you can see, I have defined a variables called SheetName and assigned it a value of Hidden$
Sample data flow
Results
Progress: 2011-11-07 07:49:32.80
Source: Excel Destination
Cleanup: 100% complete
End Progress
DTExec: The package execution returned DTSER_SUCCESS (0).
Started: 7:49:30 AM
Finished: 7:49:32 AM
Elapsed: 2.121 seconds