This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0-ml"; | |
declare namespace db = "http://marklogic.com/xdmp/database"; | |
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; | |
declare variable $SUPPORT-DUMP-FILEPATH as xs:string := 'E:\support-request-go\support-request-go.txt'; | |
declare variable $support as document-node()* := xdmp:document-get( | |
$SUPPORT-DUMP-FILEPATH, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0-ml"; | |
import module namespace view = "http://marklogic.com/xdmp/view" | |
at "/MarkLogic/views.xqy"; | |
declare option xdmp:mapping 'false'; | |
let $_schema_remove := | |
let $current := try { view:schema-get ('main') } catch ($e) { () } | |
return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for $uri in cts:uris ( (), ("frequency-order", "document") ) | |
where cts:frequency ($uri) gt 1 | |
return $uri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.IOException; | |
import java.net.URLEncoder; | |
import java.nio.charset.Charset; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.nio.file.StandardOpenOption; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you've done this right you should see this in /var/opt/MarkLogic | |
# lrwxrwxrwx 1 root root 16 Sep 10 03:54 Logs -> /space/ErrorLogs | |
sudo ln -s /space/ErrorLogs /var/opt/MarkLogic/Logs | |
mkdir /space/ErrorLogs | |
chown -R daemon:daemon /space/ErrorLogs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl sar2rrd-2.6.2.pl -t MDY -f sar18/sardata.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procdump -64 -e -t -mp -n 3 MarkLogic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0-ml"; | |
(text{"Forest Name,State,Rebalancer Enabled,Rebalancing,Stand Count,On Disk Size (MiB),In Mem Size (MiB)"}, | |
for $i in doc() | |
where starts-with(xdmp:node-uri($i), "/MY_APP_FOREST_NAMES_HERE") | |
order by xdmp:node-uri($i) | |
return | |
text {string-join( (xs:string($i//*:forest-name), xs:string($i//*:state), xs:string($i//*:rebalancer-enable), xs:string($i//*:rebalancing), xs:string(fn:count($i//*:stands/*:stand)), xs:string(fn:sum( xs:integer($i//*:stands/*:stand/*:disk-size))), xs:string(fn:sum( xs:integer($i//*:stands/*:stand/*:memory-size))) ), ",")}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0-ml"; | |
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; | |
(: Global Variables :) | |
declare variable $CONFIG as element(configuration) := admin:get-configuration(); | |
declare variable $MASTER as xs:string := "MAIN"; | |
declare variable $REPLICA as xs:string := "REPLICA"; | |
declare variable $TOTAL-FORESTS as xs:integer := 16; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Part Two | |
# Go to Devices and select Insert Guest Additions CD Image ... | |
# Then run the below to install VirtualBox Guest Additions | |
mkdir /media/VirtualBoxGuestAdditions | |
mount -r /dev/cdrom /media/VirtualBoxGuestAdditions | |
KERN_DIR=/usr/src/kernels/`uname -r` | |
export KERN_DIR | |
cd /media/VirtualBoxGuestAdditions | |
./VBoxLinuxAdditions.run |